tested game logic
This commit is contained in:
parent
784da51a3f
commit
4fd09212dd
@ -9,12 +9,13 @@ namespace ZL
|
|||||||
std::function<void(GameObjectManager&, size_t)> createRoom1Logic()
|
std::function<void(GameObjectManager&, size_t)> createRoom1Logic()
|
||||||
{
|
{
|
||||||
return [](GameObjectManager& gom, size_t ms)
|
return [](GameObjectManager& gom, size_t ms)
|
||||||
|
// Simple test logic
|
||||||
{
|
{
|
||||||
// if (gom.inventory.HasItem("book")) {
|
if (GetItemByName("book")) {
|
||||||
// std::cout << "[Room 1] Игрок поднял книгу!\n";
|
std::cout << "[Room 1] Игрок поднял книгу!\n";
|
||||||
//
|
|
||||||
// gom.switch_room(1);
|
gom.switch_room(1);
|
||||||
// }
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user