Esempio n. 1
0
 /// <summary>
 /// Picks up material at the units feet or adjacent tile.
 /// </summary>
 /// <param name="tile">The tile the materials will be picked up from.</param>
 /// <param name="amount">The amount of materials to pick up. Amounts &lt;= 0 will pick up all the materials that the unit can.</param>
 /// <param name="material">The material the unit will pick up. 'redium', 'blueium', 'redium ore', or 'blueium ore'.</param>
 /// <returns>True if successfully deposited, false otherwise.</returns>
 public bool Pickup(Newtonian.Tile tile, int amount, string material)
 {
     return(this.RunOnServer <bool>("pickup", new Dictionary <string, object> {
         { "tile", tile },
         { "amount", amount },
         { "material", material }
     }));
 }
Esempio n. 2
0
 /// <summary>
 /// Moves this Unit from its current Tile to an adjacent Tile.
 /// </summary>
 /// <param name="tile">The Tile this Unit should move to.</param>
 /// <returns>True if it moved, false otherwise.</returns>
 public bool Move(Newtonian.Tile tile)
 {
     return(this.RunOnServer <bool>("move", new Dictionary <string, object> {
         { "tile", tile }
     }));
 }