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
TensionBeltManager
DescriptionThis class handles all tension beltsFunctions
initDataStructures
DescriptionInitialize data structuresDefinition
initDataStructures()Code
31 | function TensionBeltManager:initDataStructures() |
32 | self.belts = {} |
33 | self.defaultBeltData = nil |
34 | end |
new
DescriptionCreating managerDefinition
new()Return Values
table | instance | instance of object |
16 | function TensionBeltManager:new(customMt) |
17 | if customMt == nil then |
18 | customMt = TensionBeltManager_mt |
19 | end |
20 | |
21 | local self = {} |
22 | setmetatable(self, customMt) |
23 | |
24 | self:initDataStructures() |
25 | |
26 | return self |
27 | end |