예제 #1
0
 /// <summary>
 /// Consumes a Spiderling of the same owner to regain some eggs to spawn more Spiderlings.
 /// </summary>
 /// <param name="spiderling">The Spiderling to consume. It must be on the same Nest as this BroodMother.</param>
 /// <returns>True if the Spiderling was consumed. False otherwise.</returns>
 public bool Consume(Spiders.Spiderling spiderling)
 {
     return(this.RunOnServer <bool>("consume", new Dictionary <string, object> {
         { "spiderling", spiderling }
     }));
 }
예제 #2
0
 /// <summary>
 /// Attacks another Spiderling
 /// </summary>
 /// <param name="spiderling">The Spiderling to attack.</param>
 /// <returns>True if the attack was successful, false otherwise.</returns>
 public bool Attack(Spiders.Spiderling spiderling)
 {
     return(this.RunOnServer <bool>("attack", new Dictionary <string, object> {
         { "spiderling", spiderling }
     }));
 }