Example #1
0
 void OnPowerLost(object sender, PowerEventArgs e)
 {
     user.Commands.RemoveAll(c => c is PowerCommand && (c as PowerCommand).Power == e.Power);
     user.SendMessage("You have lost a power: " + e.Power.Name);
 }
Example #2
0
 void OnFactionPowerLost(object sender, PowerEventArgs e)
 {
     user.Commands.RemoveAll(c => c is FactionCommand && (c as FactionCommand).Power == e.Power);
     user.SendMessage("Your faction has lost a power: " + e.Power.Name);
 }
Example #3
0
 void OnPowerGained(object sender, PowerEventArgs e)
 {
     user.Commands.Add(new PowerCommand(game, member, e.Power));
     user.SendMessage("You have gained a new power: " + e.Power.Name);
 }
Example #4
0
 void OnFactionPowerGained(object sender, PowerEventArgs e)
 {
     user.Commands.Add(new FactionCommand(game, member, e.Power));
     user.SendMessage("Your faction has gained a new power: " + e.Power.Name);
 }