Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
Public Member Functions | Public Attributes | Private Attributes | List of all members
cqsp::scripting::ScriptInterface Class Reference

#include <scripting.h>

Inheritance diagram for cqsp::scripting::ScriptInterface:

Public Member Functions

 ScriptInterface ()
 
void RunScript (std::string_view str)
 
void ParseResult (const sol::protected_function_result &)
 
void RegisterDataGroup (std::string_view name)
 
void Init ()
 
int GetLength (std::string_view)
 
std::vector< std::string > GetLogs ()
 

Public Attributes

std::vector< std::string > values
 

Private Attributes

std::shared_ptr< spdlog::logger > logger
 
std::shared_ptr< spdlog::sinks::ringbuffer_sink_mt > ringbuffer_sink
 

Constructor & Destructor Documentation

◆ ScriptInterface()

ScriptInterface::ScriptInterface ( )

Member Function Documentation

◆ GetLength()

int ScriptInterface::GetLength ( std::string_view  a)

◆ GetLogs()

std::vector< std::string > cqsp::scripting::ScriptInterface::GetLogs ( )

◆ Init()

void ScriptInterface::Init ( )

◆ ParseResult()

void ScriptInterface::ParseResult ( const sol::protected_function_result &  result)

◆ RegisterDataGroup()

void ScriptInterface::RegisterDataGroup ( std::string_view  name)

◆ RunScript()

void ScriptInterface::RunScript ( std::string_view  str)

Member Data Documentation

◆ logger

std::shared_ptr<spdlog::logger> cqsp::scripting::ScriptInterface::logger
private

◆ ringbuffer_sink

std::shared_ptr<spdlog::sinks::ringbuffer_sink_mt> cqsp::scripting::ScriptInterface::ringbuffer_sink
private

◆ values

std::vector<std::string> cqsp::scripting::ScriptInterface::values

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