示例#1
0
 public virtual bool Replace(BoulderModel model, BoulderEntity entity)
 {
     model.setItem(this.X, this.Y, entity);
     return true;
 }
示例#2
0
 /// <summary>
 /// Places the item at the coordonate x and y
 /// </summary>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <param name="item"></param>
 public void setItem(int x, int y, BoulderEntity item)
 {
     this.Changed = true;
     if (x < this.World.GetLength(0) && y < this.World.GetLength(1))
         this.World[x, y] = item;
 }