Added PushEntity() & PopEntity() to RoomManager
Calling them from server_character_methods.cpp.
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#ifndef ROOMMANAGER_HPP_
|
||||
#define ROOMMANAGER_HPP_
|
||||
|
||||
#include "entity.hpp"
|
||||
#include "room_data.hpp"
|
||||
#include "singleton.hpp"
|
||||
|
||||
@@ -39,6 +40,9 @@ public:
|
||||
//common public methods
|
||||
int Create(std::string name, std::string tileset);
|
||||
|
||||
void PushEntity(Entity* entity);
|
||||
void PopEntity(Entity* entity);
|
||||
|
||||
void UnloadAll();
|
||||
void UnloadIf(std::function<bool(std::pair<const int,RoomData>)> fn);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user