diff --git a/src/DataInterfaces.cs b/src/DataInterfaces.cs index c2ce421..3a46db5 100644 --- a/src/DataInterfaces.cs +++ b/src/DataInterfaces.cs @@ -3,7 +3,7 @@ #endif using System.Runtime.CompilerServices; -namespace DCFApixels.DragonECS +namespace DCFApixels.DragonECS.Core { #region IEcsWorldComponent public interface IEcsWorldComponent @@ -44,11 +44,11 @@ namespace DCFApixels.DragonECS void Enable(ref T component); void Disable(ref T component); } - public static class EcsComponentResetHandler + public static class EcsComponentLifecycleHandler { public static readonly IEcsComponentLifecycle instance; public static readonly bool isHasHandler; - static EcsComponentResetHandler() + static EcsComponentLifecycleHandler() { T def = default; if (def is IEcsComponentLifecycle intrf) diff --git a/src/EcsWorld.static.cs b/src/EcsWorld.static.cs index 6e26f9f..cdfe30c 100644 --- a/src/EcsWorld.static.cs +++ b/src/EcsWorld.static.cs @@ -1,6 +1,7 @@ #if DISABLE_DEBUG #undef DEBUG #endif +using DCFApixels.DragonECS.Core; using DCFApixels.DragonECS.Internal; using System; using System.Collections.Generic; diff --git a/src/Pools/EcsPool.cs b/src/Pools/EcsPool.cs index f22a3a8..cb4bb09 100644 --- a/src/Pools/EcsPool.cs +++ b/src/Pools/EcsPool.cs @@ -45,8 +45,8 @@ namespace DCFApixels.DragonECS private int[] _recycledItems; private int _recycledItemsCount = 0; - private readonly IEcsComponentLifecycle _componentLifecycleHandler = EcsComponentResetHandler.instance; - private readonly bool _isHasComponentLifecycleHandler = EcsComponentResetHandler.isHasHandler; + private readonly IEcsComponentLifecycle _componentLifecycleHandler = EcsComponentLifecycleHandler.instance; + private readonly bool _isHasComponentLifecycleHandler = EcsComponentLifecycleHandler.isHasHandler; private readonly IEcsComponentCopy _componentCopyHandler = EcsComponentCopyHandler.instance; private readonly bool _isHasComponentCopyHandler = EcsComponentCopyHandler.isHasHandler;