mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2026-04-22 01:45:55 +08:00
fix
This commit is contained in:
parent
48014f3b73
commit
bc5278c021
@ -11,7 +11,7 @@ namespace DCFApixels.DragonECS.Core
|
|||||||
void Init(ref T component, EcsWorld world);
|
void Init(ref T component, EcsWorld world);
|
||||||
void OnDestroy(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 IEcsWorldComponent<T> CustomHandler;
|
||||||
public static readonly bool IsCustom;
|
public static readonly bool IsCustom;
|
||||||
|
|||||||
@ -148,7 +148,7 @@ namespace DCFApixels.DragonECS
|
|||||||
#region Constructors
|
#region Constructors
|
||||||
public RunHelper(EcsRunner<TProcess> runner) : this(runner,
|
public RunHelper(EcsRunner<TProcess> runner) : this(runner,
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
typeof(TProcess).ToMeta().Name)
|
typeof(TProcess).GetMeta().Name)
|
||||||
#else
|
#else
|
||||||
string.Empty)
|
string.Empty)
|
||||||
#endif
|
#endif
|
||||||
@ -298,7 +298,7 @@ namespace DCFApixels.DragonECS
|
|||||||
#region Constructors
|
#region Constructors
|
||||||
public RunHelperWithFinally(EcsRunner<TProcess> runner) : this(runner,
|
public RunHelperWithFinally(EcsRunner<TProcess> runner) : this(runner,
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
typeof(TProcess).ToMeta().Name)
|
typeof(TProcess).GetMeta().Name)
|
||||||
#else
|
#else
|
||||||
string.Empty)
|
string.Empty)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -37,7 +37,7 @@ namespace DCFApixels.DragonECS
|
|||||||
return;
|
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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user