Fixes in modules
This commit is contained in:
17
src/gamedata/CharacterManagerModule.h
Normal file
17
src/gamedata/CharacterManagerModule.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef _CHARACTER_MANAGER_MODULE_
|
||||
#define _CHARACTER_MANAGER_MODULE_
|
||||
#include <flecs.h>
|
||||
namespace ECS
|
||||
{
|
||||
struct CharacterManagerModule {
|
||||
std::set<flecs::entity> characters;
|
||||
CharacterManagerModule(flecs::world &ecs);
|
||||
flecs::entity createPlayer(const Ogre::Vector3 &position,
|
||||
const Ogre::Quaternion &rotation);
|
||||
flecs::entity createCharacterData(const Ogre::String model,
|
||||
const Ogre::Vector3 &position,
|
||||
const Ogre::Quaternion &rotation);
|
||||
void removeCharacterData(int id);
|
||||
};
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user