Added Entityx to project

This commit is contained in:
Julian Nießner
2018-05-10 23:36:35 +02:00
parent 50fe9dbe02
commit 9083487ac9
58 changed files with 15308 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
/*
* Copyright (C) 2012 Alec Thomas <alec@swapoff.org>
* All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution.
*
* Author: Alec Thomas <alec@swapoff.org>
*/
#include "entityx/System.h"
namespace entityx {
BaseSystem::Family BaseSystem::family_counter_;
BaseSystem::~BaseSystem() {
}
void SystemManager::update_all(TimeDelta dt) {
assert(initialized_ && "SystemManager::configure() not called");
for (auto &pair : systems_) {
pair.second->update(entity_manager_, event_manager_, dt);
}
}
void SystemManager::configure() {
for (auto &pair : systems_) {
pair.second->configure(event_manager_);
}
initialized_ = true;
}
} // namespace entityx