Drag[en]gine Script Module DragonScript
1.23
|
Public Member Functions | |
Management | |
Sky | getSky () |
Owner sky. More... | |
int | getLayerIndex () |
Owner layer index. More... | |
int | getTarget () |
Target in layer. More... | |
Targets | |
int | getLinkCount () |
Number of links. More... | |
int | getLinkAt (int index) |
Link at index. More... | |
void | addLink (int link) |
Add link. More... | |
void | removeLink (int link) |
Remove link. More... | |
void | removeAllLinks () |
Remove all links. More... | |
Sky target.
Wraps a sky target by target index. Valid only as long as the wrapped sky does not change layer layout and layer does not change target layout. The user is responsible to call Sky.contentChanged() after changing one or more targets. Sky targets should not be changed if possible after being used in sky instances.
This is a native class.
void Dragengine.Scenery.SkyTarget.addLink | ( | int | link | ) |
Add link.
int Dragengine.Scenery.SkyTarget.getLayerIndex | ( | ) |
Owner layer index.
int Dragengine.Scenery.SkyTarget.getLinkAt | ( | int | index | ) |
Link at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getLinkCount(). |
int Dragengine.Scenery.SkyTarget.getLinkCount | ( | ) |
Number of links.
Sky Dragengine.Scenery.SkyTarget.getSky | ( | ) |
Owner sky.
int Dragengine.Scenery.SkyTarget.getTarget | ( | ) |
Target in layer.
void Dragengine.Scenery.SkyTarget.removeAllLinks | ( | ) |
Remove all links.
void Dragengine.Scenery.SkyTarget.removeLink | ( | int | link | ) |
Remove link.
EInvalidParam | link is absent. |