iw5-mod/src/game/scripting/context.hpp

33 lines
546 B
C++
Raw Normal View History

2019-01-20 07:21:43 -05:00
#pragma once
#include "executer.hpp"
2019-01-20 12:29:13 -05:00
#include "scheduler.hpp"
2019-01-20 07:21:43 -05:00
#include "parameters.hpp"
#include "event_handler.hpp"
namespace game
{
namespace scripting
{
class context final
{
public:
context();
chaiscript::ChaiScript* get_chai();
2019-01-20 07:21:43 -05:00
executer* get_executer();
2019-01-20 12:29:13 -05:00
scheduler* get_scheduler();
2019-01-20 07:21:43 -05:00
parameters* get_parameters();
event_handler* get_event_handler();
private:
chaiscript::ChaiScript chai_;
2019-01-20 07:21:43 -05:00
executer executer_;
2019-01-20 12:29:13 -05:00
scheduler scheduler_;
2019-01-20 07:21:43 -05:00
parameters parameters_;
event_handler event_handler_;
};
}
}