| 123456789101112131415161718192021222324252627282930313233343536373839 |
- /*
- * author: Patrick-Christopher Mattulat
- * e-mail: webmaster@lynarstudios.com
- */
- #include <cycle/EngineRuntimeData.hpp>
- #include <ls-std/core/evaluator/NullPointerArgumentEvaluator.hpp>
- using ls::atlantis::cycle::EngineRuntimeData;
- using ls::atlantis::interfaces::IKeyboard;
- using ls::atlantis::interfaces::IWindowApi;
- using ls::std::core::NullPointerArgumentEvaluator;
- using ::std::shared_ptr;
- EngineRuntimeData::EngineRuntimeData() = default;
- EngineRuntimeData::~EngineRuntimeData() = default;
- shared_ptr<IKeyboard> EngineRuntimeData::getKeyboard() const
- {
- return this->keyboard;
- }
- shared_ptr<IWindowApi> EngineRuntimeData::getWindowApi() const
- {
- return this->windowApi;
- }
- void EngineRuntimeData::setKeyboard(const shared_ptr<IKeyboard> &_keyboard)
- {
- NullPointerArgumentEvaluator(_keyboard).evaluate();
- this->keyboard = _keyboard;
- }
- void EngineRuntimeData::setWindowApi(const shared_ptr<IWindowApi> &_windowApi)
- {
- NullPointerArgumentEvaluator(_windowApi).evaluate();
- this->windowApi = _windowApi;
- }
|