OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
ScriptingSystem Class Reference

#include <ScriptingSystem.h>

Public Member Functions

 ScriptingSystem (std::string_view scriptFolder, std::string_view entryPointFile, PlatformApplication &platformApplication, DistLogSink &distLogSink)
 
 ~ScriptingSystem ()
 
void executeEntryPoint ()
 
template<typename TBindings , typename ... TArgs>
void addBindings (std::string_view bindingTableName, TArgs &&... args)
 

Static Public Attributes

static LogCategory ScriptingLogCategory
 

Private Member Functions

void _initBaseLibraries ()
 
void _initPackageTable ()
 
void _initBindingFunction ()
 

Private Attributes

std::unique_ptr< sol::state > _solState
 
std::unique_ptr< LogSink_scriptingLogSink
 
std::unordered_map< std::string, std::unique_ptr< IBindings > > _bindings
 
std::string _scriptFolder
 
std::string _entryPointFile
 
PlatformApplication_platformApplication
 
DistLogSink_distLogSink
 

Constructor & Destructor Documentation

◆ ScriptingSystem()

ScriptingSystem::ScriptingSystem ( std::string_view  scriptFolder,
std::string_view  entryPointFile,
PlatformApplication platformApplication,
DistLogSink distLogSink 
)

◆ ~ScriptingSystem()

ScriptingSystem::~ScriptingSystem ( )

Member Function Documentation

◆ _initBaseLibraries()

void ScriptingSystem::_initBaseLibraries ( )
private

◆ _initBindingFunction()

void ScriptingSystem::_initBindingFunction ( )
private

◆ _initPackageTable()

void ScriptingSystem::_initPackageTable ( )
private

◆ addBindings()

template<typename TBindings , typename ... TArgs>
void ScriptingSystem::addBindings ( std::string_view  bindingTableName,
TArgs &&...  args 
)
inline

◆ executeEntryPoint()

void ScriptingSystem::executeEntryPoint ( )

Member Data Documentation

◆ _bindings

std::unordered_map<std::string, std::unique_ptr<IBindings> > ScriptingSystem::_bindings
private

◆ _distLogSink

DistLogSink& ScriptingSystem::_distLogSink
private

◆ _entryPointFile

std::string ScriptingSystem::_entryPointFile
private

◆ _platformApplication

PlatformApplication& ScriptingSystem::_platformApplication
private

◆ _scriptFolder

std::string ScriptingSystem::_scriptFolder
private

◆ _scriptingLogSink

std::unique_ptr<LogSink> ScriptingSystem::_scriptingLogSink
private

◆ _solState

std::unique_ptr<sol::state> ScriptingSystem::_solState
private

◆ ScriptingLogCategory

LogCategory ScriptingSystem::ScriptingLogCategory
static

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