Exemple #1
0
        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));
            }
        }
Exemple #2
0
 public DiceRiderGump(PlayerMobile pm, DiceRider game)
     : base(pm, 530, 430, game)
 {
 }
Exemple #3
0
        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));
            }
        }
Exemple #4
0
 public DiceRiderGump(PlayerMobile pm, DiceRider game)
     : base(pm, 530, 430, game)
 {
 }