-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Pools.cs
40 lines (33 loc) · 1.21 KB
/
Pools.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Entitas.CodeGenerator.PoolsGenerator.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using Entitas;
public static class Pools {
static Pool[] _allPools;
public static Pool[] allPools {
get {
if (_allPools == null) {
_allPools = new [] { pool };
}
return _allPools;
}
}
static Pool _pool;
public static Pool pool {
get {
if (_pool == null) {
_pool = new Pool(ComponentIds.TotalComponents, 0, new PoolMetaData("Pool", ComponentIds.componentNames, ComponentIds.componentTypes));
#if (!ENTITAS_DISABLE_VISUAL_DEBUGGING && UNITY_EDITOR)
var poolObserver = new Entitas.Unity.VisualDebugging.PoolObserver(_pool);
UnityEngine.Object.DontDestroyOnLoad(poolObserver.entitiesContainer);
#endif
}
return _pool;
}
}
}