public void RemoveGame(PlayerMobile pm, BaseDiceGame game) { if (Players == null || !Players.ContainsKey(pm)) { return; } Players.Remove(pm); }
public void AddGame(PlayerMobile pm, BaseDiceGame game) { if (Players == null) { Players = new Dictionary <PlayerMobile, BaseDiceGame>(); } Players[pm] = game; }
public BaseCasinoGump(PlayerMobile pm, int width, int height, BaseDiceGame game) : base(50, 50) { User = pm; Width = width; Height = height; DiceGame = game; AddGumpLayout(); }
public void RemoveGame(PlayerMobile pm, BaseDiceGame game) { if (Players == null || !Players.ContainsKey(pm)) return; Players.Remove(pm); }
public void AddGame(PlayerMobile pm, BaseDiceGame game) { if (Players == null) Players = new Dictionary<PlayerMobile, BaseDiceGame>(); Players[pm] = game; }