diff --git a/src/Pools/EcsPool.cs b/src/Pools/EcsPool.cs index c8d8045..c3f624b 100644 --- a/src/Pools/EcsPool.cs +++ b/src/Pools/EcsPool.cs @@ -259,6 +259,7 @@ namespace DCFApixels.DragonECS #endregion #region Other + void IEcsPool.AddEmpty(int entityID) { Add(entityID); } void IEcsPool.AddRaw(int entityID, object dataRaw) { Add(entityID) = dataRaw == null ? default : (T)dataRaw; diff --git a/src/Pools/EcsPoolBase.cs b/src/Pools/EcsPoolBase.cs index 6f6f713..3bed942 100644 --- a/src/Pools/EcsPoolBase.cs +++ b/src/Pools/EcsPoolBase.cs @@ -88,6 +88,12 @@ namespace DCFApixels.DragonECS.Internal { #if (DEBUG && !DISABLE_DEBUG) throw new NullInstanceException(); +#endif + } + void IEcsPool.AddEmpty(int entityID) + { +#if (DEBUG && !DISABLE_DEBUG) + throw new NullInstanceException(); #endif } void IEcsPool.AddRaw(int entityID, object dataRaw) @@ -101,7 +107,7 @@ namespace DCFApixels.DragonECS.Internal #if (DEBUG && !DISABLE_DEBUG) throw new NullInstanceException(); #else - return null; + return null; #endif } void IEcsPool.SetRaw(int entity, object dataRaw) @@ -179,6 +185,7 @@ namespace DCFApixels.DragonECS public interface IEcsPool : IEcsReadonlyPool { #region Methods + void AddEmpty(int entityID); void AddRaw(int entityID, object dataRaw); void SetRaw(int entityID, object dataRaw); void Del(int entityID); diff --git a/src/Pools/EcsTagPool.cs b/src/Pools/EcsTagPool.cs index 893bacb..0fe8260 100644 --- a/src/Pools/EcsTagPool.cs +++ b/src/Pools/EcsTagPool.cs @@ -224,6 +224,7 @@ namespace DCFApixels.DragonECS #endregion #region Other + void IEcsPool.AddEmpty(int entityID) { Add(entityID); } void IEcsPool.AddRaw(int entityID, object dataRaw) { Add(entityID); } object IEcsReadonlyPool.GetRaw(int entityID) {