Script v1_7_1_0
- AI
- Animals
- Collections
- Contracts
- Debug
- Economy
- Elements
- EnvironmentalScore
- Errors
- Events
- GUI
- Handtools
- Hud
- I3d
- Input
- Jobs
- Maps
- Materials
- Misc
- 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
DynamicDataGrid
Functionsdelete
DescriptionDeletes data gridDefinition
delete()Code
41 | function DynamicDataGrid:delete() |
42 | self.grid = nil |
43 | end |
new
DescriptionCreating dynamic data gridDefinition
new()Code
15 | function DynamicDataGrid.new(size, tileSize, customMt) |
16 | local self = setmetatable({}, customMt or DynamicDataGrid_mt) |
17 | |
18 | self.tileSize = tileSize or 1 |
19 | self.size = size or 20 |
20 | self.numRows = math.floor(self.size / self.tileSize) + 1 |
21 | |
22 | self.grid = {} |
23 | for _=1, self.numRows do |
24 | local row = {} |
25 | for _=1, self.numRows do |
26 | table.insert(row, {}) |
27 | end |
28 | table.insert(self.grid, row) |
29 | end |
30 | |
31 | self.lastPosition = {x=0, z=0} |
32 | self.lastIndices = nil |
33 | |
34 | self.yOffset = 0.05 |
35 | |
36 | return self |
37 | end |