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
SimpleState
DescriptionStates to be used with SimpleStateMachineFunctions
activate
DescriptionActivate methodDefinition
activate()Code
32 | function SimpleState:activate(parms) |
33 | end |
deactivate
DescriptionDeactivate methodDefinition
deactivate()Code
37 | function SimpleState:deactivate() |
38 | end |
delete
DescriptionDefinitiondelete()Code
27 | function SimpleState:delete() |
28 | end |
new
DescriptionCreating instance of lightweight state machine.Definition
new()Code
16 | function SimpleState:new(id, owner, stateMachine, custom_mt) |
17 | local self = {} |
18 | setmetatable(self, custom_mt or SimpleState_mt) |
19 | self.id = id |
20 | self.owner = owner |
21 | self.stateMachine = stateMachine |
22 | return self |
23 | end |
update
Descriptionupdate methodDefinition
update(float dt)Arguments
float | dt | in ms |
43 | function SimpleState:update(dt) |
44 | end |