Rearrangements; Audio support

This commit is contained in:
2025-08-30 21:06:56 +03:00
parent 503db60c60
commit 657107b4ae
30 changed files with 95935 additions and 57 deletions

36
src/gamedata/GameData.h Normal file
View File

@@ -0,0 +1,36 @@
#ifndef GAMEDATA_H
#define GAMEDATA_H
#include <OgreBullet.h>
#include <flecs.h>
namespace ECS
{
struct GameData {
flecs::entity player;
};
struct Vector3 {
float x;
float y;
float z;
};
struct Input {
Vector3 motion;
bool fast;
Input()
: motion({ 0, 0, 0 })
, fast(false)
{
}
};
struct CharacterBody {
btPairCachingGhostObject *mGhostObject;
btCompoundShape *mCollisionShape;
Ogre::Bullet::DynamicsWorld *mWorld;
};
struct CharacterModule {
CharacterModule(flecs::world &ecs);
};
void setup();
void update(float delta);
flecs::world &get();
}
#endif