This commit is contained in:
2025-09-05 22:56:48 +03:00
parent 25816c5658
commit 92ec3e9497
17 changed files with 1320 additions and 453 deletions

View File

@@ -8,5 +8,17 @@ void setup(Ogre::SceneManager *scnMgr, Ogre::Bullet::DynamicsWorld *world,
Ogre::SceneNode *cameraNode, Ogre::Camera *camera);
void update(float delta);
flecs::world get();
template <class T> const T &get()
{
return ECS::get().get<T>();
}
template <class T> T &get_mut()
{
return ECS::get().get_mut<T>();
}
template <class T> void modified()
{
ECS::get().modified<T>();
}
}
#endif