![]() |
3DRadSpace
v1.0.0a
Scripting documentation
|
Allows raising events when a object is within the specified bounding object. More...
Public Member Functions | |
EventOnLocation () | |
Empty EventOnLocation constructor. More... | |
EventOnLocation (string name, bool enabled, bool visible_editor, BoundingBox box) | |
Creates a EventOnLocation based on the given
| |
EventOnLocation (string name, bool enabled, bool visible_editor, BoundingSphere sphere) | |
Creates a EventOnLocation based on the given
| |
EventOnLocation (string name, bool enabled, bool visible_editor, Plane plane) | |
Creates a EventOnLocation based on the given
| |
override void | Update (MouseState mouse, KeyboardState keyboard, GameTime time) |
override void | EditorDraw (SpriteBatch spriteBatch, Matrix? view, Matrix? projection) |
Marks the bounding area in the editor. More... | |
override void | Load (ContentManager content) |
Loads the sphere and box markings. More... | |
![]() | |
GameObject () | |
Default constructor. More... | |
void | Enable () |
Enables object. More... | |
void | Disable () |
Disables object. More... | |
void | Toggle () |
Switches object on/off state. More... | |
void | Show () |
Shows the object. More... | |
void | Hide () |
Hides the object. More... | |
virtual void | Draw (SpriteBatch spriteBatch, Matrix? view, Matrix? projection) |
Unloads the resource. More... | |
virtual void | Trigger () |
This is specific to objects like ExitFade, NetServer,etc More... | |
override bool | Equals (object obj) |
Determines whether the specified object is equal to the current object. More... | |
override int | GetHashCode () |
Returns the hash code calculated from a string representing the data inside the object. More... | |
override string | ToString () |
Returns the object's name More... | |
void | RunOnce () |
Runs the object one Update loop. If used on a active object it will be stopped. More... | |
Public Attributes | |
BoundingObject | BoundingType |
Sets the bounding type for the detection. More... | |
BoundingSphere | BoundingSphere |
Bounding sphere. More... | |
BoundingBox | BoundingBox |
Bounding box. More... | |
Plane | BoundingPlane |
Plane made up of More... | |
List< int > | ColidingObjects |
A list containing the objects that are being detected by the box. More... | |
bool | VisibleInEditor |
If yes, shows a green box marking the bounding zone. More... | |
new List< OpcodeEvent.OpCodeCall > | Behiavours |
The event defined in the editor. More... | |
![]() | |
Vector3 | Position |
Object position More... | |
Vector3 | Rotation |
Rotation in a Euler angles system. More... | |
List< int > | SelectedObjects |
Used for editor. More... | |
Static Public Attributes | |
static Model | Cube |
A green transparent cube used to mark the bounding cube in the editor. More... | |
static Model | Sphere |
A green trransparent sphere used to mark the bounding sphere in the editor. More... | |
Events | |
OnBoundingObjectEnter | OnObjectInside |
Raised when a object is inside the bounding object. More... | |
![]() | |
onDraw | OnDraw |
Called when object is being drawn on frame. More... | |
onUpdate | OnUpdate |
Called when object is being updated on the update logic loop. More... | |
onObjectDestroy | OnRemoval |
Called when object is being deleted. More... | |
onObjectLoad | OnObjectLoad |
Called when a object resource is being loaded. More... | |
Additional Inherited Members | |
![]() | |
static implicit | operator bool (GameObject o) |
Checks if the object exists. Same as GameObject != null. More... | |
static bool | operator== (GameObject a, GameObject b) |
Checks if two GameObjects are equal. More... | |
static bool | operator!= (GameObject a, GameObject b) |
The opposite of the equality operator. More... | |
![]() | |
string | Name [get, set] |
Object Name. Used as a string identifier. More... | |
object | Tag [get, set] |
Tag object. More... | |
bool | Enabled [get, set] |
Checks if object is enabled. More... | |
bool | Hidden [get, set] |
Checks if object is being drawn. More... | |
List< ObjectBehiavour > | Behiavours [get, set] |
Relation with other objects More... | |
Quaternion | RotationQuaternion [get] |
Rotation in a Quaterion system. More... | |
string | Resource [get, set] |
Resource file More... | |
Allows raising events when a object is within the specified bounding object.
_3DRadSpaceDll.EventOnLocation.EventOnLocation | ( | ) |
Empty EventOnLocation constructor.
_3DRadSpaceDll.EventOnLocation.EventOnLocation | ( | string | name, |
bool | enabled, | ||
bool | visible_editor, | ||
BoundingBox | box | ||
) |
Creates a EventOnLocation based on the given
name | Name of the object |
enabled | Checks if the collisoin events will be raised. |
visible_editor | Checks if the object is visible in the editor |
box | Bounding box. |
_3DRadSpaceDll.EventOnLocation.EventOnLocation | ( | string | name, |
bool | enabled, | ||
bool | visible_editor, | ||
BoundingSphere | sphere | ||
) |
Creates a EventOnLocation based on the given
name | Name of the object |
enabled | Checks if the collisoin events will be raised. |
visible_editor | Checks if the object is visible in the editor |
sphere | Bounding sphere. |
_3DRadSpaceDll.EventOnLocation.EventOnLocation | ( | string | name, |
bool | enabled, | ||
bool | visible_editor, | ||
Plane | plane | ||
) |
Creates a EventOnLocation based on the given
name | Name of the object |
enabled | Checks if the collisoin events will be raised. |
visible_editor | Checks if the object is visible in the editor |
plane | Bounding plane |
|
virtual |
Marks the bounding area in the editor.
spriteBatch | Not used. |
view | View Matrix. |
projection | Projection Matrix. |
Reimplemented from _3DRadSpaceDll.GameObject.
|
virtual |
|
virtual |
mouse | |
keyboard | |
time |
Reimplemented from _3DRadSpaceDll.GameObject.
new List<OpcodeEvent.OpCodeCall> _3DRadSpaceDll.EventOnLocation.Behiavours |
The event defined in the editor.
BoundingBox _3DRadSpaceDll.EventOnLocation.BoundingBox |
Bounding box.
Plane _3DRadSpaceDll.EventOnLocation.BoundingPlane |
Plane made up of
BoundingSphere _3DRadSpaceDll.EventOnLocation.BoundingSphere |
Bounding sphere.
BoundingObject _3DRadSpaceDll.EventOnLocation.BoundingType |
Sets the bounding type for the detection.
List<int> _3DRadSpaceDll.EventOnLocation.ColidingObjects |
A list containing the objects that are being detected by the box.
|
static |
A green transparent cube used to mark the bounding cube in the editor.
|
static |
A green trransparent sphere used to mark the bounding sphere in the editor.
bool _3DRadSpaceDll.EventOnLocation.VisibleInEditor |
If yes, shows a green box marking the bounding zone.
OnBoundingObjectEnter _3DRadSpaceDll.EventOnLocation.OnObjectInside |
Raised when a object is inside the bounding object.