Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.Sky Class Reference

Sky. More...

Inheritance diagram for Dragengine.Scenery.Sky:

Public Member Functions

Constructors
Sky new ()
 Create sky.
Management
Color getBgColor ()
 Background color.
void setBgColor (Color color)
 Set background color.
int getControllerCount ()
 Number of controllers.
void setControllerCount (int count)
 Set number of controllers.
SkyController getControllerAt (int index)
 Get wrapper for controller.
SkyController getControllerNamed (String name)
 Get wrapper for controller if present.
int indexOfControllerNamed (String name)
 Index of named controller or -1 if not found.
int getLinkCount ()
 Number of links.
void setLinkCount (int count)
 Set number of links.
SkyLink getLinkAt (int index)
 Get wrapper for link.
int getLayerCount ()
 Number of layers.
void setLayerCount (int count)
 Set number of layers.
SkyLayer getLayerAt (int index)
 Get wrapper for layer.
void contentChanged ()
 Notify peer parameters changed.

Detailed Description

Sky.

This is a native class.

Member Function Documentation

◆ contentChanged()

void Dragengine.Scenery.Sky.contentChanged ( )

Notify peer parameters changed.

Use after changing one or more parameters. If possible avoid changing parameters while sky instances use this sky.

References contentChanged(), and getLayerAt().

Referenced by contentChanged().

◆ getBgColor()

Color Dragengine.Scenery.Sky.getBgColor ( )

Background color.

References getBgColor().

Referenced by getBgColor().

◆ getControllerAt()

SkyController Dragengine.Scenery.Sky.getControllerAt ( int index)

Get wrapper for controller.

Warning
The wrapper is only valid as long as the controller structure in the parent sky is not changed.
Parameters
indexIndex of controller. If index is negative controller count is added to it. This allows to get controllers starting from the last controller.
Exceptions
EOutOfBoundarycontroller is less than -getControllerCount() or larger than or equal to getControllerCount().

References getControllerAt().

Referenced by getControllerAt().

◆ getControllerCount()

int Dragengine.Scenery.Sky.getControllerCount ( )

Number of controllers.

References getControllerCount().

Referenced by getControllerCount().

◆ getControllerNamed()

SkyController Dragengine.Scenery.Sky.getControllerNamed ( String name)

Get wrapper for controller if present.

Warning
The wrapper is only valid as long as the controller structure in the animator is not changed.
Parameters
nameName of controller. If no controller with this name is present null is returned.

Referenced by getLinkCount().

◆ getLayerAt()

SkyLayer Dragengine.Scenery.Sky.getLayerAt ( int index)

Get wrapper for layer.

Warning
The wrapper is only valid as long as the layer structure in the parent sky is not changed.
Exceptions
EOutOfBoundarylayer is less than 0 or larger than or equal to getLayerCount().

References getLayerCount(), and setLayerCount().

Referenced by contentChanged().

◆ getLayerCount()

int Dragengine.Scenery.Sky.getLayerCount ( )

Number of layers.

Referenced by getLayerAt().

◆ getLinkAt()

SkyLink Dragengine.Scenery.Sky.getLinkAt ( int index)

Get wrapper for link.

Warning
The wrapper is only valid as long as the link structure in the parent sky is not changed.
Exceptions
EOutOfBoundarylink is less than 0 or larger than or equal to getLinkCount().

References setLinkCount().

Referenced by setLayerCount().

◆ getLinkCount()

int Dragengine.Scenery.Sky.getLinkCount ( )

Number of links.

References getControllerNamed(), and indexOfControllerNamed().

Referenced by setLinkCount().

◆ indexOfControllerNamed()

int Dragengine.Scenery.Sky.indexOfControllerNamed ( String name)

Index of named controller or -1 if not found.

Referenced by getLinkCount().

◆ new()

Sky Dragengine.Scenery.Sky.new ( )

Create sky.

References new().

Referenced by new().

◆ setBgColor()

void Dragengine.Scenery.Sky.setBgColor ( Color color)

Set background color.

References setBgColor().

Referenced by setBgColor().

◆ setControllerCount()

void Dragengine.Scenery.Sky.setControllerCount ( int count)

Set number of controllers.

Sets all controllers to default vaules.

References setControllerCount().

Referenced by setControllerCount().

◆ setLayerCount()

void Dragengine.Scenery.Sky.setLayerCount ( int count)

Set number of layers.

Sets all layers to default vaules.

References getLinkAt().

Referenced by getLayerAt().

◆ setLinkCount()

void Dragengine.Scenery.Sky.setLinkCount ( int count)

Set number of links.

Sets all links to default vaules.

References getLinkCount().

Referenced by getLinkAt().


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