2022-03-24 10:44:20 +00:00
|
|
|
#include <std_include.hpp>
|
2019-09-27 22:35:57 +02:00
|
|
|
#include "context_initializer.hpp"
|
|
|
|
|
|
|
|
namespace game::scripting
|
|
|
|
{
|
|
|
|
context::context() : executer_(this), scheduler_(this), parameters_(this), event_handler_(this)
|
|
|
|
{
|
|
|
|
context_initializer::initialize(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
executer* context::get_executer()
|
|
|
|
{
|
|
|
|
return &this->executer_;
|
|
|
|
}
|
|
|
|
|
|
|
|
scheduler* context::get_scheduler()
|
|
|
|
{
|
|
|
|
return &this->scheduler_;
|
|
|
|
}
|
|
|
|
|
|
|
|
parameters* context::get_parameters()
|
|
|
|
{
|
|
|
|
return &this->parameters_;
|
|
|
|
}
|
|
|
|
|
|
|
|
event_handler* context::get_event_handler()
|
|
|
|
{
|
|
|
|
return &this->event_handler_;
|
|
|
|
}
|
|
|
|
|
|
|
|
chaiscript::ChaiScript* context::get_chai()
|
|
|
|
{
|
|
|
|
return &this->chai_;
|
|
|
|
}
|
|
|
|
}
|