Libraries.Game.Scenes.SceneProperties Documentation
The SceneProperties class is a wrapper around a number of public constant text values which are used by the Scene system.
Inherits from: Libraries.Language.Object
Variables Table
| Variables | Description |
|---|---|
| text RESTITUTION | |
| text RESPONSIVE | Valid values for the RESPONSIVENESS property. |
| text NONRESPONSIVE | Valid values for the RESPONSIVENESS property. |
| number LASTEST_VERSION | The following generic properties are used by a variety of elements of a scene. |
| text LIGHTS | The following constants are used for lights stored in a layer. PointLights aren't stored here -- those are stored as Items instead. The lights here may include directional lights and ambient lighting. The following properties are required: CLASS COLOR DIRECTION (DirectionalLight only) |
| text RESPONSIVENESS | |
| text CAMERA | Properties used for the camera in a Layer. Cameras require the following properties: POSITION DIRECTION UP CLASS They may optionally use the following: ZOOM (OrthographicCamera only) FIELD_OF_VIEW (PerspectiveCamera only) SIZE NEAR FAR |
| integer CYLINDER | |
| integer RECTANGLE | Valid values for the TYPE property for Drawable items. |
| text DOPPLER_ENABLED | |
| text VIEWPORT | |
| text MASS | |
| text PHYSICS | Properties related to the use of Physics in a Layer. The following properties are required for Physics: ENABLED These properties are optional: GRAVITY |
| text GRAVITY | The following properties are used for Items. Depending on the class of the Layer, items might be 2D or 3D. Different types of items require different properties, as listed in parenthesis below. The following properties are required for items: CLASS NAME POSITION SIZE TRANSFORM (Item3D) TYPE (Drawable or Model) POINTS (Drawable with TYPE = TRIANGLE) FILE (If TYPE = CUSTOM) TEXTURE_REGION_LEFT (Drawable with TYPE = CUSTOM) TEXTURE_REGION_RIGHT (Drawable with TYPE = CUSTOM) TEXTURE_REGION_TOP (Drawable with TYPE = CUSTOM) TEXTURE_REGION_BOTTOM (Drawable with TYPE = CUSTOM) INTENSITY (PointLight) The following properties are optional: DESCRIPTION SCALE ROTATION COLOR CHILDREN PHYSICS_ENABLED RESPONSIVENESS VIEW |
| text ZOOM | |
| text ROLLOFF_RATE | |
| text CHILDREN | |
| text FAR | Properties related to the use of Physics in a Layer. The following properties are required for Physics: ENABLED These properties are optional: GRAVITY |
| integer CUSTOM | Valid values for the TYPE property for Model items. |
| integer PLANE | Valid values for the TYPE property for Drawable items. |
| text COLOR | |
| text CLASS | |
| integer FILLED_RECTANGLE | |
| text PITCH | The following constants are used for audio, especially Audio3D. The following properties are required: VOLUME PITCH MAX_VOLUME_DISTANCE ROLLOFF_RATE LOOPING DOPPLER_ENABLED The following properties are optional: PLAY_ON_LOAD |
| text NEAR | |
| text TEXTURE_REGION_LEFT | |
| integer SPHERE | |
| text SIZE | Properties describing the application as a whole. |
| text TEXTURE_REGION_RIGHT | |
| text VOLUME | The following constants are used for audio, especially Audio3D. The following properties are required: VOLUME PITCH MAX_VOLUME_DISTANCE ROLLOFF_RATE LOOPING DOPPLER_ENABLED The following properties are optional: PLAY_ON_LOAD |
| text TYPE | |
| text FULL_SCREEN | Properties used for Layers. Layers require the following properties: NAME CLASS CAMERA ITEMS Layers may optionally also have the following: VIEWPORT PHYSICS SKYBOX (Layer3D only) |
| text FRICTION | |
| text MAX_VOLUME_DISTANCE | |
| text TRANSFORM | |
| text INTENSITY | NONE is typically used for TYPE if a Model or Drawable hasn't been loaded yet. |
| integer CUSTOM_SHAPE | The FILE value typically indicates the location of a texture or a model file. |
| integer CIRCLE | |
| text FILE | The FILE value typically indicates the location of a texture or a model file. |
| text FIELD_OF_VIEW | |
| text ENABLED | |
| text TEXTURE_REGION_BOTTOM | |
| text LOOPING | |
| integer NONE | NONE is typically used for TYPE if a Model or Drawable hasn't been loaded yet. |
| text ROTATION | |
| text UP | |
| text PHYSICS_ENABLED | |
| text UNMOVABLE | The following constants are used for lights stored in a layer. PointLights aren't stored here -- those are stored as Items instead. The lights here may include directional lights and ambient lighting. The following properties are required: CLASS COLOR DIRECTION (DirectionalLight only) |
| text VIEW | |
| integer FILLED_TRIANGLE | |
| text LAYERS | Properties used for Layers. Layers require the following properties: NAME CLASS CAMERA ITEMS Layers may optionally also have the following: VIEWPORT PHYSICS SKYBOX (Layer3D only) |
| text POSITION | |
| text APPLICATION | Properties describing the application as a whole. |
| integer FILLED_CIRCLE | |
| text SCALE | |
| text TEXTURE_REGION_TOP | |
| text PLAY_ON_LOAD | |
| text SKYBOX | Properties used for the camera in a Layer. Cameras require the following properties: POSITION DIRECTION UP CLASS They may optionally use the following: ZOOM (OrthographicCamera only) FIELD_OF_VIEW (PerspectiveCamera only) SIZE NEAR FAR |
| text DESCRIPTION | |
| text NAME | The following generic properties are used by a variety of elements of a scene. |
| text ITEMS | The following properties are used for Items. Depending on the class of the Layer, items might be 2D or 3D. Different types of items require different properties, as listed in parenthesis below. The following properties are required for items: CLASS NAME POSITION SIZE TRANSFORM (Item3D) TYPE (Drawable or Model) POINTS (Drawable with TYPE = TRIANGLE) FILE (If TYPE = CUSTOM) TEXTURE_REGION_LEFT (Drawable with TYPE = CUSTOM) TEXTURE_REGION_RIGHT (Drawable with TYPE = CUSTOM) TEXTURE_REGION_TOP (Drawable with TYPE = CUSTOM) TEXTURE_REGION_BOTTOM (Drawable with TYPE = CUSTOM) INTENSITY (PointLight) The following properties are optional: DESCRIPTION SCALE ROTATION COLOR CHILDREN PHYSICS_ENABLED RESPONSIVENESS VIEW |
| text VERSION | |
| text POINTS | |
| text DIRECTION | |
| integer BOX | Valid values for the TYPE property for Model items. |
Actions Documentation
Compare(Libraries.Language.Object object)
This action compares two object hash codes and returns an integer. The result is larger if this hash code is larger than the object passed as a parameter, smaller, or equal. In this case, -1 means smaller, 0 means equal, and 1 means larger. This action was changed in Quorum 7 to return an integer, instead of a CompareResult object, because the previous implementation was causing efficiency issues.
Parameters
- Libraries.Language.Object: The object to compare to.
Return
integer: The Compare result, Smaller, Equal, or Larger.
Example
Object o
Object t
integer result = o:Compare(t) //1 (larger), 0 (equal), or -1 (smaller)
Equals(Libraries.Language.Object object)
This action determines if two objects are equal based on their hash code values.
Parameters
- Libraries.Language.Object: The to be compared.
Return
boolean: True if the hash codes are equal and false if they are not equal.
Example
use Libraries.Language.Object
use Libraries.Language.Types.Text
Object o
Text t
boolean result = o:Equals(t)
GetHashCode()
This action gets the hash code for an object.
Return
integer: The integer hash code of the object.
Example
Object o
integer hash = o:GetHashCode()
