Overload  1.1
Game engine with editor
Public Member Functions | List of all members
OvCore::Scripting::ScriptInterpreter Class Reference

#include <ScriptInterpreter.h>

Public Member Functions

 ScriptInterpreter (const std::string &p_scriptRootFolder)
 
 ~ScriptInterpreter ()
 
void CreateLuaContextAndBindGlobals ()
 
void DestroyLuaContext ()
 
void Consider (OvCore::ECS::Components::Behaviour *p_toConsider)
 
void Unconsider (OvCore::ECS::Components::Behaviour *p_toUnconsider)
 
void RefreshAll ()
 
bool IsOk () const
 

Detailed Description

Handles script interpretation

Constructor & Destructor Documentation

◆ ScriptInterpreter()

OvCore::Scripting::ScriptInterpreter::ScriptInterpreter ( const std::string &  p_scriptRootFolder)

Constructor

Parameters
p_scriptRootFolder@project: Overload
Author
: Overload Tech. @restrictions: This software may not be resold, redistributed or otherwise conveyed to a third party.

◆ ~ScriptInterpreter()

OvCore::Scripting::ScriptInterpreter::~ScriptInterpreter ( )

Destructor

Member Function Documentation

◆ Consider()

void OvCore::Scripting::ScriptInterpreter::Consider ( OvCore::ECS::Components::Behaviour p_toConsider)

Consider a behaviour

Parameters
p_toConsider

◆ CreateLuaContextAndBindGlobals()

void OvCore::Scripting::ScriptInterpreter::CreateLuaContextAndBindGlobals ( )

Handle the creation of the lua context and bind engine functions to lua

◆ DestroyLuaContext()

void OvCore::Scripting::ScriptInterpreter::DestroyLuaContext ( )

Destroy the lua context

◆ IsOk()

bool OvCore::Scripting::ScriptInterpreter::IsOk ( ) const

Returns true if every scripts are OK

◆ RefreshAll()

void OvCore::Scripting::ScriptInterpreter::RefreshAll ( )

Refresh every scripts

◆ Unconsider()

void OvCore::Scripting::ScriptInterpreter::Unconsider ( OvCore::ECS::Components::Behaviour p_toUnconsider)

Unconsider a behaviour

Parameters
p_toUnconsider

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