3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
Loading...
Searching...
No Matches
Engine3DRadSpace.InstIGame Class Reference
Inheritance diagram for Engine3DRadSpace.InstIGame:
Collaboration diagram for Engine3DRadSpace.InstIGame:

Public Member Functions

 InstIGame (IntPtr handle)
void Exit ()
 Exits the game.
Ray GetMouseRay (Vector2 pos, in Matrix4x4 view, in Matrix4x4 projection)
void AppendScene (string path)
Public Member Functions inherited from Engine3DRadSpace.NatPtrWrapper
virtual void Dispose ()
Public Member Functions inherited from Engine3DRadSpace.IGame
void Exit ()
void AppendScene (string path)
template<Service S>
void AddService (S *service)
 Adds an service to this game. The service must be derived from IService.
IService * GetService (const std::type_index &type)
 Gets the service of the given type. If the service is not found, nullptr is returned.
template<Service S>
S * GetService (Tag< S > dummy)
 Gets the service of type S. If the service is not found, nullptr is returned.
virtual IService * RequireService (const std::type_index &type)
 Requires a service of the given type. If the service is not found, it is attempted to be created.
template<Service S>
S * RequireService (Tag< S > dummy)
 Requires a service of type S. If the service is not found, it is attempted to be created.
std::unordered_map< std::type_index, IService * >::iterator begin ()
 Begin iterator for services in the game.
std::unordered_map< std::type_index, IService * >::iterator end ()
 End iterator for services in the game.
virtual bool WasInitialized () const noexcept=0
 Was ::Initialized() called on this instance?
virtual bool WasLoaded () const noexcept=0
 Was ::Load() called on this instance?
virtual bool IsEditor () const noexcept=0
 Is this game instance an editor?
virtual void AppendScene (const std::filesystem::path &path)=0
virtual ~IGame ()=default

Properties

bool WasInitialized [get]
bool WasLoaded [get]
Properties inherited from Engine3DRadSpace.NatPtrWrapper
IntPtr Handle [get]
Properties inherited from Engine3DRadSpace.IGame
bool WasInitialized [get]
bool WasLoaded [get]

Additional Inherited Members

Protected Member Functions inherited from Engine3DRadSpace.NatPtrWrapper
 NatPtrWrapper (IntPtr handle, Action< IntPtr > fnDestroy)
 NatPtrWrapper (Action< IntPtr > fnDestroy)
void Reset (IntPtr newObj)
void Dispose (bool disposing)
Protected Member Functions inherited from Engine3DRadSpace.IGame
 IGame ()=default
 IGame (const IGame &)=delete
IGame & operator= (const IGame &)=delete
 IGame (IGame &&) noexcept=default
IGame & operator= (IGame &&) noexcept=default
Protected Attributes inherited from Engine3DRadSpace.NatPtrWrapper
IntPtr _handle
bool _disposed
Protected Attributes inherited from Engine3DRadSpace.IGame
std::unordered_map< std::type_index, IService * > _services

Constructor & Destructor Documentation

◆ InstIGame()

Engine3DRadSpace.InstIGame.InstIGame ( IntPtr handle)
inline

Member Function Documentation

◆ AppendScene()

void Engine3DRadSpace.InstIGame.AppendScene ( string path)
inline

◆ Exit()

void Engine3DRadSpace.InstIGame.Exit ( )
inlinevirtual

Exits the game.

Implements Engine3DRadSpace.IGame.

◆ GetMouseRay()

Ray Engine3DRadSpace.InstIGame.GetMouseRay ( Vector2 pos,
in Matrix4x4 view,
in Matrix4x4 projection )
inline

Property Documentation

◆ WasInitialized

bool Engine3DRadSpace.InstIGame.WasInitialized
get

◆ WasLoaded

bool Engine3DRadSpace.InstIGame.WasLoaded
get

The documentation for this class was generated from the following file: