Example #1
0
 public Actor this[Coords c]
 {
     get { return(actors[c.z, c.y, c.x]); }
     set { actors[c.z, c.y, c.x] = value; }
 }
Example #2
0
 public void Replicate(Coords coords)//Registering in another cell at coords
 {
     World.instance.grid[coords] = this;
 }
Example #3
0
 public Coords(Coords copy)
 {
     this.x = copy.x;
     this.y = copy.y;
     this.z = copy.z;
 }
Example #4
0
 public void Teleport(Coords coords)//Moves to new cell at coords
 {
     World.instance.grid[this.coords] = null;
     this.coords = coords;
     World.instance.grid[coords] = this;
 }