The Region object allows you to access the properties of your scene's regions. Regions can be queried by using the Scene.GetNode method.
Point manipulation | |
AddPoint | Adds a new point to the region. |
InsertPoint | Adds a new point to the region. |
SetPoint | Changes the coordinates of a point of this region. |
RemovePoint | Removes point from the region. |
GetPoint | Queries one point of the region. |
Type (read only) | Returns always "region" |
Name | The internal name of the region |
Active | Specifies whether the region is active |
NumPoints (read only) | Returns the number of points of this region |
Blocked | Specifies whether this region is blocked |
Decoration | Specifies whether this is the "decoration" region |
Scale | The scale factor of this region |
AlphaColor | The alpha color of this region |
SaveState | Specifies if the region remembers its state after the player leaves the scene |
ActorEntry | Some of the actors just entered this region. |
ActorLeave | Some of the actors just left this region. |
Adds a new point to the region.
Returns true if the method succeeded.
Adds a new point to the region.
Returns true if the method succeeded.
If the index is higher than the number of points already present in the region, this method fails.
Changes the coordinates of a point of this region.
Returns true if the method succeeded.
Removes point from the region.
Returns true if the method succeeded.
Queries one point of the region.
Returns an object which provides two properties, X and Y.