예제 #1
0
 internal Entity CreateEntityInstance(Archetype archetype)
 {
     Entity e = CreateEntityInstance();
     entityToIdentity[e.Id] = archetype.CompositionId;
     return e;
 }
예제 #2
0
 internal int Create(Archetype archetype)
 {
     int id = recyclingEntityFactory.Obtain().Id;
     entityToIdentity[id] = archetype.CompositionId;
     return id;
 }