Changes

Jump to navigation Jump to search

Documentation/Engine/Units/accessory interior data

1,165 bytes added, 19:24, 10 March 2017
More info about typical includes, and handling of glass_pane_data
The '''accessory_interior_data''' unit class is used to define the interior and its animations for the [[Documentation/Engine/Game_data/Player_trucks_definitions|player's vehicle]]. Units of this type are usually defined in '''/def/vehicle/truck/<make.model>/interior/*.sii''', making heavy use of [[Documentation/Engine/Units#Includes|includes]] via:*'''/def/vehicle/truck/<make.model>/interior/animations.sui''' (animation-related attributes; '''animations_uk.sii''' for RHD vehicles in ETS2)*'''/def/vehicle/truck/<make.model>/interior/dashboard_color.sii''' (dashboard_color array attribute)*'''/def/vehicle/truck/<make.model>/interior/seat.sui''' (seat adjustment limits; '''seat_uk.sui''' for RHD vehicles in ETS2)
== Attributes ==
|Path to the UI definition for the dashboard display.
|-
|'''gps_path'''
|string
|
|owner_ptr_array
|
|Each member points to the unit name of a [[Documentation/Engine/Units/glass_pane_data|glass_pane_data]] unit. The glass_pane_data units are typically included after the accessory_interior_data unit, via ''glass.sui'' or, in some legacy cases, ''glass.dat''.
|-
|dashboard_color
|}
==Related ClassesGlass Panes and Wipers==Related units, '''glass_pane_data''' and '''wiper_data''' are defined within the same <code>SiiNunit</code> scope as accessory_interior_data, included via '''/def/vehicle/truck/<make.model>/interior/glass.sui''' (or '''glass.dat''' in some legacy cases):
*[[Documentation/Engine/Units/glass_pane_data|glass_pane_data]] (Used to define surfaces for raindrop accumulation and wiper simulation)
*[[Documentation/Engine/Units/wiper_data|wiper_data]] (Used to define wipers that act on glass panes)
 
For example:
<syntaxhighlight lang="cpp">SiiNunit
{ // start of SiiNunit global scope
 
accessory_interior_data : something.brand.truck.interior
{ // start of accessory_interior_data unit
 
// various attributes belonging to accessory_interior_data
 
// each member refers to a unit included via glass.sui
glass_panes[]: .brand.truck.pane.front
glass_panes[]: .brand.truck.pane.close
glass_panes[]: .brand.truck.pane.far
// etc...
 
} // end of accessory_interior_data scope
 
@include "glass.sui" // file containing glass_pane_data and wiper_data units
 
} // end of SiiNunit global scope
</syntaxhighlight>
309
edits

Navigation menu