diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-02 13:18:50 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-02 13:18:50 +0100 |
commit | 5a675c5e6833e98b92b55396594bc0d607b98903 (patch) | |
tree | b252fafe921e7734a13d796b950e5ab817a22a1f /frontend/GameData.cpp | |
parent | 671a25463419691bc6c8d11bd57d932bdea9632b (diff) |
clean up code + implement teleport consumable
Diffstat (limited to 'frontend/GameData.cpp')
-rw-r--r-- | frontend/GameData.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/GameData.cpp b/frontend/GameData.cpp index 3b9046d..1b7c548 100644 --- a/frontend/GameData.cpp +++ b/frontend/GameData.cpp @@ -37,7 +37,7 @@ Enemy * GameData::create_enemy(const string & name) const { query.reset() .bind(name) ; - + try { auto row = query.row(); auto enemy = unique_ptr<Enemy>{ EnemyFactory::create_enemy(row.col<const char *>(0), row.col<const char *>(1)) }; @@ -69,7 +69,7 @@ Object * GameData::create_object(const string & name) const { query.reset() .bind(name) ; - + try { auto row = query.row(); return ObjectFactory::create_object({ @@ -96,7 +96,7 @@ Location * GameData::create_location(const string & name) const{ query.reset() .bind(name) ; - + try { auto row = query.row(); return LocationFactory::create_location(row.col<const char *>(0), row.col<const char *>(1)); |