ワールドが所有するEntityのコンテナ
[詳解]
#include <EntityContainer.hpp>
◆ EntityContainer()
ECS::EntityContainer::EntityContainer |
( |
| ) |
|
|
inlineprivate |
◆ Create()
const Entity & ECS::EntityContainer::Create |
( |
| ) |
|
|
inline |
Entityを生成する
- 戻り値
39 {
41 {
45 }
46 else
47 {
50 }
51
53 }
EntityID next
Definition EntityContainer.hpp:25
std::vector< Entity > free
Definition EntityContainer.hpp:28
std::vector< Entity > active
Definition EntityContainer.hpp:22
◆ Remove()
void ECS::EntityContainer::Remove |
( |
const Entity & | _entity | ) |
|
|
inline |
56 {
57 free.push_back(_entity);
58
59 }
◆ active
std::vector<Entity> ECS::EntityContainer::active |
|
private |
◆ next
◆ free
std::vector<Entity> ECS::EntityContainer::free |
|
private |
このクラス詳解は次のファイルから抽出されました: