Maintain item list

This commit is contained in:
2025-12-08 03:37:14 +03:00
parent 33fc237793
commit 81a78990ce
4 changed files with 263 additions and 8 deletions

View File

@@ -41,6 +41,17 @@ struct TerrainModule {
static int get_img_y(float world_z);
static void update_heightmap(const Ogre::Image &heightmap);
static void save_heightmap();
static flecs::entity createItem(const Ogre::Vector3 &position,
const Ogre::Quaternion &orientation,
const Ogre::String &type);
static void setItemProperties(flecs::entity id,
Ogre::String properties);
static const Ogre::String &getItemProperties(flecs::entity id);
static void saveItems();
static void loadItems();
static void getItemPositionPerSlot(long x, long y,
std::list<Ogre::Vector3> *positions);
static void getItemPositions(std::list<Ogre::Vector3> *positions);
};
struct TerrainReady {};
}