Better boat handling

This commit is contained in:
2025-11-30 18:28:26 +03:00
parent cd82fb0eed
commit 5b014dcb65
21 changed files with 938 additions and 230 deletions

View File

@@ -7,6 +7,14 @@ namespace ECS
struct ParentSlot {
flecs::entity parent_e;
Ogre::String slot_name;
void createSlot(flecs::entity e);
void createCharacterSlot(flecs::entity e);
void removeSlot(flecs::entity e);
bool check() const;
bool parentIsValid();
Ogre::SceneNode *getSlotBase() const;
void addChild(Ogre::SceneNode *childNode);
void createSlotData(flecs::entity e);
};
struct ParentSlotData {
Ogre::String slot_name;
@@ -17,9 +25,11 @@ struct ObjectSlots {
std::unordered_map<Ogre::String,
std::pair<Ogre::String, Ogre::SceneNode *> >
slots;
bool exists(const Ogre::String &name) const;
};
struct SlotsModule {
SlotsModule(flecs::world &ecs);
void createBoatSlots(flecs::entity e);
};
}
#endif