26 mRooms.emplace_back(std::unique_ptr<Room>(room));
39 mSprites.emplace_back(std::unique_ptr<Sprite>(sprite));
65 mEntities.emplace_back(std::unique_ptr<Entity>(entity));
78 mModels.emplace_back(std::unique_ptr<SkeletalModel>(model));
91 mStaticMeshes.emplace_back(std::unique_ptr<StaticMesh>(model));
void addSkeletalModel(SkeletalModel *model)
~World()
Deconstructs an object of World.
std::vector< std::unique_ptr< SpriteSequence > > mSpriteSequences
StaticMesh & getStaticMesh(unsigned long index)
Room & getRoom(unsigned long index)
std::vector< std::unique_ptr< Mesh > > mMeshes
unsigned long sizeStaticMesh()
void destroy()
Clears all data in world.
unsigned long sizeEntity()
std::vector< std::unique_ptr< SkeletalModel > > mModels
unsigned long sizeSpriteSequence()
Entity & getEntity(unsigned long index)
std::vector< std::unique_ptr< Entity > > mEntities
SpriteSequence & getSpriteSequence(unsigned long index)
std::vector< std::unique_ptr< StaticMesh > > mStaticMeshes
void addSprite(Sprite *sprite)
Sprite & getSprite(unsigned long index)
SkeletalModel & getSkeletalModel(unsigned long index)
void addSpriteSequence(SpriteSequence *sprite)
std::vector< std::unique_ptr< Sprite > > mSprites
unsigned long sizeSkeletalModel()
void addEntity(Entity *entity)
#define assertLessThan(x, y)
unsigned long sizeSprite()
Mesh & getMesh(unsigned long index)
std::vector< std::unique_ptr< Room > > mRooms
void addStaticMesh(StaticMesh *model)