Drag[en]gine Script Module DragonScript
1.23
|
List of Rail instances. More...
Public Member Functions | |
void | dispose () |
Dispose. More... | |
void | forEachRail (Block ablock) |
Visit rails with block with parameter Rail. More... | |
int | getCount () |
Number of rails. More... | |
Rail | getOrAddWithID (StringID id) |
Rail with identifier. More... | |
Rail | getWithID (StringID id) |
Rail with identifier or null if absent. More... | |
bool | hasWithID (StringID id) |
Rail with identifier is present. More... | |
RailList | new () |
Create rail list. More... | |
void | remove (Rail rail) |
Remove rail. More... | |
List of Rail instances.
Rails define path for for elements or other objects requiring a path placed down by a level artist in the game world. Rails have a unique identifier. This identifier is used by elements to locate the path in RailList of the GameWorld they are located in. If not found getWithID() returns null. To define rails use getOrAddWithID(). This method creates the rail if not found and thus always returns a Rail instance. This is required because the loading order of elements in a GameWorld is not well defined.
Rail class is usually not subclassed. To use subclasses Rail class overwrite createRail().
void Dragengine.Scenery.RailList.dispose | ( | ) |
Dispose.
void Dragengine.Scenery.RailList.forEachRail | ( | Block | ablock | ) |
Visit rails with block with parameter Rail.
int Dragengine.Scenery.RailList.getCount | ( | ) |
Number of rails.
RailList Dragengine.Scenery.RailList.new | ( | ) |
Create rail list.
void Dragengine.Scenery.RailList.remove | ( | Rail | rail | ) |
Remove rail.