Script v1_7_1_0
- AI
- Animals
- Collections
- Contracts
- Debug
- Economy
- Elements
- EnvironmentalScore
- Errors
- Events
- GUI
- Handtools
- Hud
- I3d
- Input
- Jobs
- Maps
- Materials
- Misc
- AbstractManager
- AdditionalFieldBuyInfo
- BaleManager
- ConnectionHoseManager
- CropSensorLinkageData
- ExtendedWeedControl
- FillTypeManager
- FruitTypeManager
- ManureSensorLinkageData
- ProductionChainManager
- SplitTypeManager
- SprayTypeManager
- TensionBeltManager
- Timer
- ToolTypeManager
- TreePlantManager
- Objects
- Parameters
- Placeables
- Placement
- Player
- Shop
- Sounds
- Specialization
- Specializations
- StateMachine
- Statistics
- Tasks
- Triggers
- Utils
- Vehicles
Engine v1_7_1_0
- AI
- Animation
- Camera
- Entity
- Fillplanes
- general
- General
- I3D
- Input
- Lighting
- Math
- Network
- Node
- NoteNode
- Overlays
- Particle System
- Physics
- Rendering
- Scenegraph
- Shape
- Sound
- Spline
- String
- Terrain Detail
- Text Rendering
- Tire Track
- VoiceChat
- XML
Foundation Reference
AbstractManager
DescriptionThis class is an abstract template to be implemented by all map-bound manager classesFunctions
initDataStructures
DescriptionInitialize data structuresDefinition
initDataStructures()Code
30 | function AbstractManager:initDataStructures() |
31 | end |
load
DescriptionLoads initial managerDefinition
load()Return Values
boolean | true | if loading was successful else false |
36 | function AbstractManager:load() |
37 | return true |
38 | end |
loadMapData
DescriptionLoad data on map loadDefinition
loadMapData()Return Values
boolean | true | if loading was successful else false |
43 | function AbstractManager:loadMapData() |
44 | if g_isDevelopmentVersion and self.loadedMapData then |
45 | Logging.error("Manager map-data already loaded or not deleted after last game load!") |
46 | printCallstack() |
47 | end |
48 | self.loadedMapData = true |
49 | return true |
50 | end |
new
DescriptionCreating managerDefinition
new()Return Values
table | instance | instance of object |
16 | function AbstractManager.new(customMt) |
17 | if customMt ~= nil and type(customMt) ~= "table" then |
18 | printCallstack() |
19 | end |
20 | local self = setmetatable({}, customMt or AbstractManager_mt) |
21 | |
22 | self:initDataStructures() |
23 | self.loadedMapData = false |
24 | |
25 | return self |
26 | end |
unloadMapData
DescriptionUnload data on mission deleteDefinition
unloadMapData()Code
54 | function AbstractManager:unloadMapData() |
55 | self.loadedMapData = false |
56 | self:initDataStructures() |
57 | end |