3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
Loading...
Searching...
No Matches
Engine3DRadSpace.Scripting.IScript Class Referenceabstract

Base interface for dynamically compiled C# scripts. Scripts implementing this interface can be instantiated and managed by the engine. Matches the C++ IScript interface (inherits from IUpdateable). More...

#include <IScript.hpp>

Inheritance diagram for Engine3DRadSpace.Scripting.IScript:
Collaboration diagram for Engine3DRadSpace.Scripting.IScript:

Public Member Functions

void Start ()
 Called when this script is added to the ScriptEngine.
void End ()
 Called when this script is removed from the ScriptEngine.
virtual void Start ()=0
 Called when this is added into the ScriptEngine.
virtual void End ()=0
 Called when this is removed from the ScriptEngine.
 ~IScript ()=default
Public Member Functions inherited from Engine3DRadSpace.IUpdateable
void Update ()
virtual void Update ()=0
 Update function.
virtual ~IUpdateable ()=default

Protected Member Functions

 IScript ()=default
 IScript (const IScript &)=delete
 IScript (IScript &&)=default
IScript & operator= (const IScript &)=delete
IScript & operator= (IScript &&)=default
Protected Member Functions inherited from Engine3DRadSpace.IUpdateable
 IUpdateable ()=default
 IUpdateable (const IUpdateable &) noexcept=default
IUpdateable & operator= (const IUpdateable &) noexcept=default
 IUpdateable (IUpdateable &&) noexcept=default
IUpdateable & operator= (IUpdateable &&) noexcept=default

Protected Attributes

Objects::IObject * object = nullptr
 The object that manages this IScript instance.

Properties

IObject? Object [get]
 Gets the object that this script is attached to. Provides access to delta time, graphics device, and other engine resources.

Detailed Description

Base interface for dynamically compiled C# scripts. Scripts implementing this interface can be instantiated and managed by the engine. Matches the C++ IScript interface (inherits from IUpdateable).

Constructor & Destructor Documentation

◆ IScript() [1/3]

Engine3DRadSpace.Scripting.IScript.IScript ( )
protecteddefault

◆ IScript() [2/3]

Engine3DRadSpace.Scripting.IScript.IScript ( const IScript & )
protecteddelete

◆ IScript() [3/3]

Engine3DRadSpace.Scripting.IScript.IScript ( IScript && )
protecteddefault

◆ ~IScript()

Engine3DRadSpace.Scripting.IScript.~IScript ( )
default

Member Function Documentation

◆ End() [1/2]

void Engine3DRadSpace.Scripting.IScript.End ( )

Called when this script is removed from the ScriptEngine.

◆ End() [2/2]

virtual void Engine3DRadSpace.Scripting.IScript.End ( )
pure virtual

Called when this is removed from the ScriptEngine.

Implemented in EmptyScript, Engine3DRadSpace.Scripting.Script, and MyClass.

◆ operator=() [1/2]

IScript & Engine3DRadSpace.Scripting.IScript.operator= ( const IScript & )
protecteddelete

◆ operator=() [2/2]

IScript & Engine3DRadSpace.Scripting.IScript.operator= ( IScript && )
protecteddefault

◆ Start() [1/2]

void Engine3DRadSpace.Scripting.IScript.Start ( )

Called when this script is added to the ScriptEngine.

◆ Start() [2/2]

Member Data Documentation

◆ object

Objects::IObject* Engine3DRadSpace.Scripting.IScript.object = nullptr
protected

The object that manages this IScript instance.

Property Documentation

◆ Object

IObject? Engine3DRadSpace.Scripting.IScript.Object
get

Gets the object that this script is attached to. Provides access to delta time, graphics device, and other engine resources.


The documentation for this class was generated from the following files:
  • E:/3DRadSpace/3DRadSpace_CSharp/Scripting/IScript.cs
  • E:/3DRadSpace/Engine3DRadSpace/Scripting/IScript.hpp