public ushort AttachComponent <T>(ECS.Entity e, ComponentList <T> list) { ushort posComponent = componentListIndices[typeof(T)]; e.components[posComponent] = list.NewItem(e); return((ushort)e.components[posComponent]); }
public ECS.Entity NewEntity() { ECS.Entity e = new ECS.Entity(lastEntity++, (ushort)componentListIndices.Count); return(e); }