예제 #1
0
파일: World.cs 프로젝트: drusepth/world
 // Add an entity to the world
 public void AddEntity(Entity entity, Location3D location)
 {
     // If the target tile will accept the entity,
     if (tiles.At(location).AddEntity(entity))
     {
         // Track the entity globally
         entities.Add(entity);
     }
 }
예제 #2
0
 public T At(Location3D location)
 {
     return(At(location.X, location.Y, location.Z));
 }