From bc5278c021f775ed6b599983b5a45d151df96f4e Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Sun, 15 Mar 2026 21:56:48 +0800 Subject: [PATCH] fix --- src/DataInterfaces.cs | 2 +- src/EcsRunner.cs | 4 ++-- src/Utils/AllowedInWorldsAttribute.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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."); } } }