space-game001/QuestScripts.cpp
2025-03-02 23:19:15 +06:00

31 lines
604 B
C++

#include "QuestScripts.h"
#include "GameObjectManager.h"
#include "Inventory.h"
#include <iostream>
namespace ZL
{
std::function<void(GameObjectManager&, size_t)> createRoom1Logic()
{
return [](GameObjectManager& gom, size_t ms)
{
if (gom.bearName.compare("TOM") == 0) {
gInventoryMap.clear();
gom.switch_room(1);
}
};
}
std::function<void(GameObjectManager&, size_t)> createRoom2Logic()
{
return [](GameObjectManager& gom, size_t ms)
// Simple test logic
{
};
}
}