Added creatures to the room containers
This commit is contained in:
@@ -29,8 +29,14 @@ CreatureManager::~CreatureManager() {
|
||||
UnloadAll();
|
||||
}
|
||||
|
||||
void CreatureManager::Update() {
|
||||
for (auto& it : elementMap) {
|
||||
it.second.Update();
|
||||
}
|
||||
}
|
||||
|
||||
int CreatureManager::Create(std::string avatar, int scriptRef) {
|
||||
//implicitly create the new
|
||||
//implicitly create the new object
|
||||
elementMap.emplace(counter, CreatureData(avatar, scriptRef));
|
||||
|
||||
//TODO: do various things like saving to the database
|
||||
|
||||
Reference in New Issue
Block a user