![]() |
3DRadSpace
v1.0.0a
Scripting documentation
|
Represents an Skybox object. More...
Public Member Functions | |
Skybox () | |
Empty constructor. More... | |
Skybox (string name, bool enabled, string path) | |
Main skybox constructor. More... | |
void | Load (ContentManager content, GraphicsDevice gd) |
Loads the skybox. More... | |
override void | Draw (SpriteBatch spriteBatch, Matrix? view, Matrix? projection) |
Draws the skybox. More... | |
void | EditorDraw (Vector3 editor_cam_pos, Matrix view, Matrix projection) |
Draws the skybox in the editor - an extra argument is needed. More... | |
void | LinkAvalableCamera () |
Finds a camera object to link the skybox to. More... | |
void | Dispose () |
Frees the loaded texture. 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 | Load (ContentManager content) |
Loads the resource(s). More... | |
virtual void | EditorDraw (SpriteBatch spriteBatch, Matrix? view, Matrix? projection) |
Object draw code for the 3DRadSpace editor More... | |
virtual void | Update (MouseState mouse, KeyboardState keyboard, GameTime time) |
Object update logic 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 | |
Texture2D | Texture |
A antire image representing the skybox. More... | |
![]() | |
Vector3 | Position |
Object position More... | |
Vector3 | Rotation |
Rotation in a Euler angles system. More... | |
List< int > | SelectedObjects |
Used for editor. More... | |
Protected Member Functions | |
void | Dispose (bool disposing) |
Protected Dispose(). More... | |
Properties | |
float | Size [get, set] |
Size of the cube itself. 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... | |
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... | |
![]() | |
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... | |
Represents an Skybox object.
_3DRadSpaceDll.Skybox.Skybox | ( | ) |
Empty constructor.
_3DRadSpaceDll.Skybox.Skybox | ( | string | name, |
bool | enabled, | ||
string | path | ||
) |
Main skybox constructor.
name | |
enabled | |
path |
void _3DRadSpaceDll.Skybox.Dispose | ( | ) |
Frees the loaded texture.
|
protected |
Protected Dispose().
disposing |
|
virtual |
Draws the skybox.
spriteBatch | |
view | |
projection |
Reimplemented from _3DRadSpaceDll.GameObject.
void _3DRadSpaceDll.Skybox.EditorDraw | ( | Vector3 | editor_cam_pos, |
Matrix | view, | ||
Matrix | projection | ||
) |
Draws the skybox in the editor - an extra argument is needed.
editor_cam_pos | |
view | |
projection |
void _3DRadSpaceDll.Skybox.LinkAvalableCamera | ( | ) |
Finds a camera object to link the skybox to.
void _3DRadSpaceDll.Skybox.Load | ( | ContentManager | content, |
GraphicsDevice | gd | ||
) |
Loads the skybox.
content | |
gd | GraphicsDevice used to initialize the texture. |
Texture2D _3DRadSpaceDll.Skybox.Texture |
A antire image representing the skybox.
|
getset |
Size of the cube itself.