feat: implement material palette management and core mesh asset handling infrastructure

This commit is contained in:
2026-04-27 22:55:55 +09:00
parent e3a02437c3
commit 631638f3fb
12 changed files with 69 additions and 6114 deletions

View File

@@ -75,7 +75,7 @@ internal static class ComponentRegistry
size = sizeof(T),
alignment = (int)MemoryUtility.AlignOf<T>(),
isEnableable = typeof(IEnableableComponent).IsAssignableFrom(type),
isSharedWarper = typeof(ISharedWarper).IsAssignableFrom(type),
isSharedWarper = typeof(ISharedWrapper).IsAssignableFrom(type),
isCleanup = typeof(ICleanupComponent).IsAssignableFrom(type),
};

View File

@@ -7,7 +7,7 @@ using System.Diagnostics;
namespace Ghost.Entities;
public interface ISharedComponent;
public interface ISharedWarper
public interface ISharedWrapper
{
int Index
{
@@ -15,7 +15,7 @@ public interface ISharedWarper
}
}
public struct Shared<T> : IComponent, ISharedWarper
public struct Shared<T> : IComponent, ISharedWrapper
where T : unmanaged, ISharedComponent
{
public int Index