Script v1.7.1.0
- AI
- Animals
- Contracts
- Debug
- Economy
- Effects
- Events
- Farms
- GUI
- Handtools
- I3d
- Materials
- Misc
- Objects
- Placeables
- Player
- Shop
- Sounds
- Specializations
- Triggers
- Utils
- Vehicles
- Weather
Engine v1.7.1.0
- AI
- Animation
- Camera
- Entity
- Fillplanes
- General
- I3D
- Input
- Lighting
- Math
- Network
- Node
- Overlays
- Particle System
- Physics
- Rendering
- Scenegraph
- Shape
- Sound
- Spline
- String
- Terrain Detail
- Text Rendering
- Tire Track
- XML
- general
Foundation Reference
CylinderedFoldable
DescriptionSpecialization to repeat the loading of cylindered states after the folding state was loaded, in case the animation overlaps with the moving toolsFunctions
onPostLoad
DescriptionDefinitiononPostLoad()Code
29 | function CylinderedFoldable:onPostLoad(savegame) |
30 | if Utils.getNoNil(getXMLBool(self.xmlFile, "vehicle.cylindered#loadMovingToolStatesAfterFolding"), false) then |
31 | Cylindered.onPostLoad(self, savegame) |
32 | end |
33 | end |
prerequisitesPresent
DescriptionChecks if all prerequisite specializations are loadedDefinition
prerequisitesPresent(table specializations)Arguments
table | specializations | specializations |
boolean | hasPrerequisite | true if all prerequisite specializations are loaded |
17 | function CylinderedFoldable.prerequisitesPresent(specializations) |
18 | return SpecializationUtil.hasSpecialization(Cylindered, specializations) and SpecializationUtil.hasSpecialization(Foldable, specializations) |
19 | end |
registerEventListeners
DescriptionDefinitionregisterEventListeners()Code
23 | function CylinderedFoldable.registerEventListeners(vehicleType) |
24 | SpecializationUtil.registerEventListener(vehicleType, "onPostLoad", CylinderedFoldable) |
25 | end |