Script v1_7_1_0
- AI
- Animals
- Collections
- Contracts
- Debug
- Debug2DArea
- DebugBitVectorMap
- DebugCube
- DebugDensityMap
- DebugFlag
- DebugGizmo
- DebugInfoTable
- DebugManager
- DebugPath
- DebugPoint
- DebugText
- DebugUtil
- NoteManager
- 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
NoteManager
DescriptionThis class handles creating and exporting note nodes at runtimeParent
AbstractManagerFunctions
initDataStructures
DescriptionDefinitioninitDataStructures()Code
25 | function NoteManager:initDataStructures() |
26 | self.sessionDirectory = nil |
27 | self.sessionTimestamp = nil |
28 | self.mapTitle = nil |
29 | self.currentNoteIndex = 1 |
30 | |
31 | local colorWhite = {1,1,1,1} |
32 | self.colors = {} |
33 | table.insert(self.colors, {color=colorWhite}) |
34 | for _, color in ipairs(DebugUtil.COLORS) do |
35 | table.insert(self.colors, {color={color[1], color[2], color[3], 1}}) |
36 | end |
37 | self.lastColor = colorWhite |
38 | |
39 | if not self.initialized then |
40 | addConsoleCommand("gsNoteExport", "Exports currently created note nodes as i3d file", "consoleCommandExportNotes", self) |
41 | addConsoleCommand("gsNoteList", "Lists currently created note nodes in console/log", "consoleCommandListNotes", self) |
42 | self.initialized = true |
43 | end |
44 | end |