public override void OnResponse(NetState sender, RelayInfo info) { Mobile from = sender.Mobile; if (info.ButtonID > 3) { return; } switch (info.ButtonID) { case 0: from.SendGump(new EmployeGump(tresorier, employe, true)); return; case 2: tresorier.PayerEmploye(employe); break; case 3: tresorier.ReprendreDu(employe, employe.Total); break; } tresorier.RemoveEmploye(employe.Personnage); from.SendGump(new TresorierGump(tresorier, from, 0)); }
protected override void OnTick() { foreach (Employe employe in tresorier.m_Employes.Values) { tresorier.PayerEmploye(employe); } tresorier.TimerProchainePaie(); }
public override void OnResponse(Mobile from, string text) { int montant; if (Int32.TryParse(text, out montant)) { tresorier.PayerEmploye(employe); employe.Paie = montant; from.SendGump(new EmployeGump(tresorier, employe, true)); } else { from.SendMessage("Vous devez indiquer un nombre"); from.Prompt = new ModifierPaiePrompt(tresorier, employe); } }