Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.SkyTarget Class Reference

Sky target. More...

Inheritance diagram for Dragengine.Scenery.SkyTarget:

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...
 

Detailed Description

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.

Member Function Documentation

◆ addLink()

void Dragengine.Scenery.SkyTarget.addLink ( int  link)

Add link.

◆ getLayerIndex()

int Dragengine.Scenery.SkyTarget.getLayerIndex ( )

Owner layer index.

◆ getLinkAt()

int Dragengine.Scenery.SkyTarget.getLinkAt ( int  index)

Link at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getLinkCount().

◆ getLinkCount()

int Dragengine.Scenery.SkyTarget.getLinkCount ( )

Number of links.

◆ getSky()

Sky Dragengine.Scenery.SkyTarget.getSky ( )

Owner sky.

◆ getTarget()

int Dragengine.Scenery.SkyTarget.getTarget ( )

Target in layer.

◆ removeAllLinks()

void Dragengine.Scenery.SkyTarget.removeAllLinks ( )

Remove all links.

◆ removeLink()

void Dragengine.Scenery.SkyTarget.removeLink ( int  link)

Remove link.

Exceptions
EInvalidParamlink is absent.

The documentation for this class was generated from the following file: