3DRadSpace  v1.0.0a
Scripting documentation
_3DRadSpaceDll.ExitFade Class Reference

Allows loading other projects. More...

Inheritance diagram for _3DRadSpaceDll.ExitFade:

Public Member Functions

 ExitFade (string name, string Path, Color fadecolor=default, int fadetime=0, bool fade_type=true)
 Main constructor of ExitFade class. More...
 ExitFade ()
 Empty ExitFade Constructor. More...
override void Trigger ()
 When starting the object in the editor events, or scripts, this will get called. More...
override void Draw (SpriteBatch spriteBatch, Matrix? view, Matrix? projection)
 Draws the fading. More...
override void Update (MouseState mouse, KeyboardState keyboard, GameTime time)
 Updated the fade alpha timer. More...
void LoadProject ()
 Allows loading other projects. More...
- Public Member Functions inherited from _3DRadSpaceDll.GameObject
 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...
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

Color Color
 Fade color. More...
- Public Attributes inherited from _3DRadSpaceDll.GameObject
Vector3 Position
 Object position More...
Vector3 Rotation
 Rotation in a Euler angles system. More...
List< int > SelectedObjects
 Used for editor. More...


double Time [get, set]
 Time for the fade in milliseconds (ms) More...
bool FadeType [get, set]
 Toggles fade type. In or out. More...
- Properties inherited from _3DRadSpaceDll.GameObject
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< ObjectBehiavourBehiavours [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 Public Member Functions inherited from _3DRadSpaceDll.GameObject
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...
- Events inherited from _3DRadSpaceDll.GameObject
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...

Detailed Description

Allows loading other projects.

Constructor & Destructor Documentation

◆ ExitFade() [1/2]

_3DRadSpaceDll.ExitFade.ExitFade ( string  name,
string  Path,
Color  fadecolor = default,
int  fadetime = 0,
bool  fade_type = true 

Main constructor of ExitFade class.

nameName of the object.
PathProject to load.
fadecolorFade Color.
fadetimeFade Time, measured in miliseconds.

Defaults to 0.

fade_typeFades in or our.

true = fade in

false = fade out

◆ ExitFade() [2/2]

_3DRadSpaceDll.ExitFade.ExitFade ( )

Empty ExitFade Constructor.

Member Function Documentation

◆ Draw()

override void _3DRadSpaceDll.ExitFade.Draw ( SpriteBatch  spriteBatch,
Matrix?  view,
Matrix?  projection 

Draws the fading.

spriteBatchNeeded for drawing the fading.
viewNot needed.
projectionNot needed.

Reimplemented from _3DRadSpaceDll.GameObject.

◆ LoadProject()

void _3DRadSpaceDll.ExitFade.LoadProject ( )

Allows loading other projects.

◆ Trigger()

override void _3DRadSpaceDll.ExitFade.Trigger ( )

When starting the object in the editor events, or scripts, this will get called.

Reimplemented from _3DRadSpaceDll.GameObject.

◆ Update()

override void _3DRadSpaceDll.ExitFade.Update ( MouseState  mouse,
KeyboardState  keyboard,
GameTime  time 

Updated the fade alpha timer.


Reimplemented from _3DRadSpaceDll.GameObject.

Member Data Documentation

◆ Color

Color _3DRadSpaceDll.ExitFade.Color

Fade color.

Property Documentation

◆ FadeType

bool _3DRadSpaceDll.ExitFade.FadeType

Toggles fade type. In or out.

true = fade in

false = fade out

◆ Time

double _3DRadSpaceDll.ExitFade.Time

Time for the fade in milliseconds (ms)