MoonTools.ECS/src/Rev2/Archetype.cs

23 lines
530 B
C#
Raw Normal View History

2023-10-19 22:41:49 +00:00
using System.Collections.Generic;
namespace MoonTools.ECS.Rev2
{
public class Archetype
{
public ArchetypeSignature Signature;
public ArchetypeId Id { get; private set; }
/* FIXME: make this native memory too */
public List<Column> Components = new List<Column>();
public Dictionary<ComponentId, ArchetypeEdge> Edges = new Dictionary<ComponentId, ArchetypeEdge>();
public int Count;
public Archetype(ArchetypeId id, ArchetypeSignature signature)
{
Id = id;
Signature = signature;
Count = 0;
}
}
}