![]() |
3DRadSpace
v1.0.0a
Scripting documentation
|
Executes an event everytime a 'period' passes for a number of times. More...
Public Member Functions | |
Timer () | |
Empty Timer constructor. More... | |
Timer (string name, bool enabled, uint period, uint repetitions) | |
Main Timer constructor. More... | |
override void | Update (MouseState mouse, KeyboardState keyboard, GameTime time) |
![]() | |
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 | Load (ContentManager content) |
Loads the resource(s). More... | |
virtual void | Draw (SpriteBatch spriteBatch, Matrix? view, Matrix? projection) |
Unloads the resource. More... | |
virtual void | EditorDraw (SpriteBatch spriteBatch, Matrix? view, Matrix? projection) |
Object draw code for the 3DRadSpace editor 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 | |
uint | Period |
Defined the time in milliseconds between the timer event executions. More... | |
uint | Repetitions |
Defines how many times the event will get called. 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 | |
const uint | Infinity = uint.MaxValue |
Represents ∞ More... | |
Properties | |
uint | TotalTime [get] |
Counts the time passed. 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... | |
Events | |
TimerEvent | OnTimerRepetition |
Raised everytime a repetition is complete. 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... | |
Executes an event everytime a 'period' passes for a number of times.
_3DRadSpaceDll.Timer.Timer | ( | ) |
Empty Timer constructor.
_3DRadSpaceDll.Timer.Timer | ( | string | name, |
bool | enabled, | ||
uint | period, | ||
uint | repetitions | ||
) |
|
virtual |
mouse | |
keyboard | |
time |
Reimplemented from _3DRadSpaceDll.GameObject.
new List<OpcodeEvent.OpCodeCall> _3DRadSpaceDll.Timer.Behiavours |
The event defined in the editor.
|
static |
Represents ∞
uint _3DRadSpaceDll.Timer.Period |
Defined the time in milliseconds between the timer event executions.
uint _3DRadSpaceDll.Timer.Repetitions |
Defines how many times the event will get called.
Use
or to represent ∞ (infinity)
|
get |
Counts the time passed.
Maximum value is
*
NOTE: Unsigned integer overflows will occur if the Period is a value representing ∞ (
)
TimerEvent _3DRadSpaceDll.Timer.OnTimerRepetition |
Raised everytime a repetition is complete.