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
AbstractManager
DescriptionAbstract base class for Manager classesFunctions
initDataStructures
DescriptionInitialize data structuresDefinition
initDataStructures()Code
27 | function AbstractManager:initDataStructures() |
28 | end |
load
DescriptionLoads initial managerDefinition
load()Return Values
boolean | true | if loading was successful else false |
33 | function AbstractManager:load() |
34 | return true |
35 | end |
loadMapData
DescriptionLoad data on map loadDefinition
loadMapData()Return Values
boolean | true | if loading was successful else false |
40 | function AbstractManager:loadMapData() |
41 | if g_isDevelopmentVersion and self.loadedMapData then |
42 | g_logManager:error("Manager map-data already loaded or not deleted after last game load!") |
43 | printCallstack() |
44 | end |
45 | self.loadedMapData = true |
46 | return true |
47 | end |
new
DescriptionCreating managerDefinition
new()Return Values
table | instance | instance of object |
16 | function AbstractManager:new(customMt) |
17 | local self = setmetatable({}, customMt or AbstractManager_mt) |
18 | |
19 | self:initDataStructures() |
20 | self.loadedMapData = false |
21 | |
22 | return self |
23 | end |
unloadMapData
DescriptionUnload data on mission deleteDefinition
unloadMapData()Code
51 | function AbstractManager:unloadMapData() |
52 | self.loadedMapData = false |
53 | self:initDataStructures() |
54 | end |