Add managed entity and script component.

Added ManagedEntity and related methods in EntityManager;
Added ScriptComponent to write game play logic in oop;
This commit is contained in:
2025-12-10 16:12:56 +09:00
parent 99c1a1980e
commit 21e85e0c02
17 changed files with 549 additions and 152 deletions

View File

@@ -5,7 +5,6 @@ public interface IIdentifierType;
public interface IKeyType;
public readonly struct Handle<T> : IEquatable<Handle<T>>
where T : IHandleType
{
public readonly int id;
public readonly int generation;
@@ -58,7 +57,6 @@ public readonly struct Handle<T> : IEquatable<Handle<T>>
}
public readonly struct Identifier<T> : IEquatable<Identifier<T>>
where T : IIdentifierType
{
public readonly int value;
@@ -132,7 +130,6 @@ public readonly struct Identifier<T> : IEquatable<Identifier<T>>
}
public readonly struct Key<T>
where T : IKeyType
{
public readonly ulong value;