This commit is contained in:
Mikhail 2026-03-15 21:56:48 +08:00
parent 48014f3b73
commit bc5278c021
3 changed files with 4 additions and 4 deletions

View File

@ -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<T> where T : struct
public static class EcsWorldComponent<T>
{
public static readonly IEcsWorldComponent<T> CustomHandler;
public static readonly bool IsCustom;

View File

@ -148,7 +148,7 @@ namespace DCFApixels.DragonECS
#region Constructors
public RunHelper(EcsRunner<TProcess> 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<TProcess> runner) : this(runner,
#if DEBUG
typeof(TProcess).ToMeta().Name)
typeof(TProcess).GetMeta().Name)
#else
string.Empty)
#endif

View File

@ -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.");
}
}
}