Script v1.7.1.0
- AI
- Animals
- Contracts
- Debug
- Economy
- Effects
- Events
- Farms
- GUI
- Handtools
- I3d
- Materials
- Misc
- AbstractManager
- AsyncManager
- AutoSaveManager
- BaleTypeManager
- BrandColorManager
- ConnectionHoseManager
- DeferredLoadingManager
- DepthOfFieldManager
- FillTypeManager
- FruitTypeManager
- GameplayHintManager
- GroundTypeManager
- HelpLineManager
- MapManager
- PlaceableTypeManager
- SleepManager
- SplitTypeManager
- SprayTypeManager
- TensionBeltManager
- ToolTypeManager
- TreePlantManager
- 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
AsyncManager
DescriptionThis class handles loading lots of things in little bits using lambdasFunctions
initDataStructures
DescriptionInitialize data structuresDefinition
initDataStructures()Code
26 | function AsyncManager:initDataStructures() |
27 | self.firstTask = nil |
28 | self.lastTask = nil |
29 | self.currentRunningTask = nil |
30 | self.enabled = true |
31 | self.doTracing = false |
32 | self.executeSubTasksImmediately = self.doTracing and false -- reduces tracing spam when true |
33 | end |
new
DescriptionCreating managerDefinition
new()Return Values
table | instance | instance of object |
16 | function AsyncManager:new(customMt) |
17 | local self = setmetatable({}, customMt or AsyncManager_mt) |
18 | |
19 | self:initDataStructures() |
20 | |
21 | return self |
22 | end |