CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::MonoEnvironment Class Referencefinal

#include <CeresEngine/Scripting/Mono/MonoEnvironment.hpp>

Public Member Functions

 MonoEnvironment (const FilePath &runtimeDirectory, const FilePath &applicationAssembly)
 Creates a new MonoEnvironment.
 
 ~MonoEnvironment () noexcept
 Destroys the MonoEnvironment.
 
int run () const noexcept
 Runs the application assembly entry point method.
 

Private Attributes

MonoDomaindomain = nullptr
 The environment mono domain.
 
MonoAssemblyengineAssembly = nullptr
 The main engine runtime assembly.
 
MonoImageengineImage = nullptr
 The image corresponding to the engine assembly.
 
MonoAssemblyapplicationAssembly = nullptr
 The application assembly.
 
MonoImageapplicationImage = nullptr
 The application assembly image.
 

Constructor & Destructor Documentation

◆ MonoEnvironment()

CeresEngine::MonoEnvironment::MonoEnvironment ( const FilePath runtimeDirectory,
const FilePath applicationAssembly 
)
explicit

Creates a new MonoEnvironment.

Parameters
runtimeDirectoryThe mono runtime directory
applicationAssemblyThe mono application assembly path

◆ ~MonoEnvironment()

CeresEngine::MonoEnvironment::~MonoEnvironment ( )
noexcept

Destroys the MonoEnvironment.

Member Function Documentation

◆ run()

int CeresEngine::MonoEnvironment::run ( ) const
noexcept

Runs the application assembly entry point method.

Returns
The value returned by the assembly entry point

Member Data Documentation

◆ applicationAssembly

MonoAssembly* CeresEngine::MonoEnvironment::applicationAssembly = nullptr
private

The application assembly.

◆ applicationImage

MonoImage* CeresEngine::MonoEnvironment::applicationImage = nullptr
private

The application assembly image.

◆ domain

MonoDomain* CeresEngine::MonoEnvironment::domain = nullptr
private

The environment mono domain.

◆ engineAssembly

MonoAssembly* CeresEngine::MonoEnvironment::engineAssembly = nullptr
private

The main engine runtime assembly.

◆ engineImage

MonoImage* CeresEngine::MonoEnvironment::engineImage = nullptr
private

The image corresponding to the engine assembly.


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