Better boat handling
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user