示例#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));
 }