Inventory updates, API updates, lots of file renaming

This commit is contained in:
2026-03-17 04:05:04 -04:00
parent b060784bb7
commit fb6f902f28
63 changed files with 820 additions and 553 deletions

View File

@@ -0,0 +1,26 @@
#include "area_manager.hpp"
#include <imgui.h>
using namespace game::resource;
using namespace game::util;
namespace game::state::play
{
int AreaManager::get(entity::Character& character)
{
auto& data = character.data;
auto& schema = data.areaSchema;
if (schema.areas.empty()) return -1;
auto size = (int)data.stages.size();
for (int i = 0; i < size; i++)
{
auto& stage = data.stages[size - i - 1];
if (stage.areaID != -1) return stage.areaID;
}
return -1;
}
}