Support proper actuator animation

This commit is contained in:
2025-09-27 01:23:16 +03:00
parent 7e06da700a
commit 25280a9cbe
16 changed files with 528 additions and 103 deletions

View File

@@ -1,5 +1,6 @@
#ifndef COMPONENTS_H_
#define COMPONENTS_H_
#include <flecs.h>
#include <Ogre.h>
#include <OgreBullet.h>
namespace Ogre
@@ -76,10 +77,18 @@ struct InWater {};
struct TerrainReady {};
struct WaterReady {};
struct GroundCheckReady {};
struct VehicleSlots {
struct ParentSlot {
flecs::entity parent_e;
Ogre::String slot_name;
bool activated;
};
struct ObjectSlots {
std::unordered_map<Ogre::String,
std::pair<Ogre::String, Ogre::SceneNode *> >
seats;
slots;
};
struct Body2Entity {
std::unordered_map<btCollisionObject *, flecs::entity> entities;
};
}
#endif