move IEcsReadonlyPool.Copy to IEcsPool.Copy

This commit is contained in:
DCFApixels 2025-03-28 11:52:18 +08:00
parent 2c046a47e5
commit d394ec6b21

View File

@ -135,13 +135,13 @@ namespace DCFApixels.DragonECS.Internal
throw new NullInstanceException(); throw new NullInstanceException();
#endif #endif
} }
void IEcsReadonlyPool.Copy(int fromEntityID, int toEntityID) void IEcsPool.Copy(int fromEntityID, int toEntityID)
{ {
#if DEBUG #if DEBUG
throw new NullInstanceException(); throw new NullInstanceException();
#endif #endif
} }
void IEcsReadonlyPool.Copy(int fromEntityID, EcsWorld toWorld, int toEntityID) void IEcsPool.Copy(int fromEntityID, EcsWorld toWorld, int toEntityID)
{ {
#if DEBUG #if DEBUG
throw new NullInstanceException(); throw new NullInstanceException();
@ -189,11 +189,10 @@ namespace DCFApixels.DragonECS
#region Methods #region Methods
bool Has(int entityID); bool Has(int entityID);
object GetRaw(int entityID); object GetRaw(int entityID);
void Copy(int fromEntityID, int toEntityID);
void Copy(int fromEntityID, EcsWorld toWorld, int toEntityID);
#endregion #endregion
#if !DRAGONECS_DISABLE_POOLS_EVENTS #if !DRAGONECS_DISABLE_POOLS_EVENTS
#region Add/Remove Listeners #region Add/Remove Listeners
void AddListener(IEcsPoolEventListener listener); void AddListener(IEcsPoolEventListener listener);
void RemoveListener(IEcsPoolEventListener listener); void RemoveListener(IEcsPoolEventListener listener);
@ -209,6 +208,8 @@ namespace DCFApixels.DragonECS
void SetRaw(int entityID, object dataRaw); void SetRaw(int entityID, object dataRaw);
void Del(int entityID); void Del(int entityID);
void ClearAll(); void ClearAll();
void Copy(int fromEntityID, int toEntityID);
void Copy(int fromEntityID, EcsWorld toWorld, int toEntityID);
#endregion #endregion
} }