public override void SendGump(PlayerMobile pm) { DiceRider game = GetGame(pm) as DiceRider; if (game == null) { game = new DiceRider(pm, this); AddGame(pm, game); } if (pm.FindGump(typeof(DiceRiderGump)) is DiceRiderGump g) { g.Refresh(); } else { pm.SendGump(new DiceRiderGump(pm, game)); } }
public DiceRiderGump(PlayerMobile pm, DiceRider game) : base(pm, 530, 430, game) { }
public override void SendGump(PlayerMobile pm) { DiceRider game = GetGame(pm) as DiceRider; if (game == null) { game = new DiceRider(pm, this); AddGame(pm, game); } DiceRiderGump g = pm.FindGump(typeof(DiceRiderGump)) as DiceRiderGump; if (g != null) g.Refresh(); else { pm.SendGump(new DiceRiderGump(pm, game)); } }
public DiceRiderGump(PlayerMobile pm, DiceRider game) : base(pm, 530, 430, game) { }