// 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); } }