15 lines
464 B
C#
15 lines
464 B
C#
|
using ImportsWorld.wit.imports.lyra.api;
|
||
|
|
||
|
namespace LyraApi.Ecs;
|
||
|
|
||
|
public interface IComponent {
|
||
|
public static string HostName { get; }
|
||
|
public static ulong HostSize { get; }
|
||
|
public static ulong HostAlignment { get; }
|
||
|
public static ulong TypeId { get; }
|
||
|
|
||
|
public IEcs.ComponentInfo GetComponentInfo() {
|
||
|
var typeId = new IEcs.WasmTypeId((TypeId, 0));
|
||
|
return new IEcs.ComponentInfo(HostName, HostSize, HostAlignment, typeId);
|
||
|
}
|
||
|
}
|