tested game logic

This commit is contained in:
maka70vv 2025-03-02 10:01:05 +06:00
parent 784da51a3f
commit 4fd09212dd

View File

@ -9,12 +9,13 @@ namespace ZL
std::function<void(GameObjectManager&, size_t)> createRoom1Logic()
{
return [](GameObjectManager& gom, size_t ms)
// Simple test logic
{
// if (gom.inventory.HasItem("book")) {
// std::cout << "[Room 1] Игрок поднял книгу!\n";
//
// gom.switch_room(1);
// }
if (GetItemByName("book")) {
std::cout << "[Room 1] Игрок поднял книгу!\n";
gom.switch_room(1);
}
};
}