| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- /*
- * author: Patrick-Christopher Mattulat
- * e-mail: webmaster@lynarstudios.com
- */
- #include <cycle/EngineRuntimeData.hpp>
- #include <ls-std/ls-std-core.hpp>
- using ls::atlantis::cycle::EngineRuntimeData;
- using ls::atlantis::interfaces::IKeyboard;
- using ls::atlantis::interfaces::IWindowApi;
- using ls::atlantis::interfaces::IWindowApiEventManager;
- using ls::std::core::NullPointerArgumentEvaluator;
- using ::std::shared_ptr;
- EngineRuntimeData::EngineRuntimeData() = default;
- EngineRuntimeData::~EngineRuntimeData() = default;
- shared_ptr<IKeyboard> EngineRuntimeData::getKeyboard() const
- {
- return this->keyboard;
- }
- bool EngineRuntimeData::getIsUp() const
- {
- return this->isUp;
- }
- shared_ptr<IWindowApi> EngineRuntimeData::getWindowApi() const
- {
- return this->windowApi;
- }
- shared_ptr<IWindowApiEventManager> EngineRuntimeData::getWindowApiEventManager() const
- {
- return this->windowApiEventManager;
- }
- void EngineRuntimeData::setIsUp(const bool _isUp)
- {
- this->isUp = _isUp;
- }
- 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;
- }
- void EngineRuntimeData::setWindowApiEventManager(const shared_ptr<IWindowApiEventManager> &_windowApiEventManager)
- {
- NullPointerArgumentEvaluator(_windowApiEventManager).evaluate();
- this->windowApiEventManager = _windowApiEventManager;
- }
|