diff --git a/src/DataInterfaces.cs b/src/DataInterfaces.cs index fabac1f..945e072 100644 --- a/src/DataInterfaces.cs +++ b/src/DataInterfaces.cs @@ -11,7 +11,7 @@ namespace DCFApixels.DragonECS.Core void Init(ref T component, EcsWorld world); void OnDestroy(ref T component, EcsWorld world); } - public static class EcsWorldComponent where T : struct + public static class EcsWorldComponent { public static readonly IEcsWorldComponent CustomHandler; public static readonly bool IsCustom; diff --git a/src/EcsRunner.cs b/src/EcsRunner.cs index 32a015e..c86b992 100644 --- a/src/EcsRunner.cs +++ b/src/EcsRunner.cs @@ -148,7 +148,7 @@ namespace DCFApixels.DragonECS #region Constructors public RunHelper(EcsRunner runner) : this(runner, #if DEBUG - typeof(TProcess).ToMeta().Name) + typeof(TProcess).GetMeta().Name) #else string.Empty) #endif @@ -298,7 +298,7 @@ namespace DCFApixels.DragonECS #region Constructors public RunHelperWithFinally(EcsRunner runner) : this(runner, #if DEBUG - typeof(TProcess).ToMeta().Name) + typeof(TProcess).GetMeta().Name) #else string.Empty) #endif diff --git a/src/Utils/AllowedInWorldsAttribute.cs b/src/Utils/AllowedInWorldsAttribute.cs index 19457ed..58ed487 100644 --- a/src/Utils/AllowedInWorldsAttribute.cs +++ b/src/Utils/AllowedInWorldsAttribute.cs @@ -37,7 +37,7 @@ namespace DCFApixels.DragonECS return; } } - throw new InvalidOperationException($"Using component {componentType.ToMeta().TypeName} is not allowed in the {worldType.ToMeta().TypeName} world."); + throw new InvalidOperationException($"Using component {componentType.GetMeta().TypeName} is not allowed in the {worldType.GetMeta().TypeName} world."); } } }