Exemple #1
0
        public static void ShowMenu(this Player player, IMenu menu)
        {
            MenuInfo menuInfo = menu.GetMenuInfo(player);

            dict[player] = new MenuTime(menu, DateTime.Now, TimeSpan.FromSeconds(menuInfo.displayTime));
            player.ShowMenu(menuInfo.keys, menuInfo.displayTime, menuInfo.text);
        }
Exemple #2
0
 public static void ShowMenu(this Player player, IMenu menu, byte displayTime)
 {
     MenuInfo menuInfo = menu.GetMenuInfo(player);
     menuInfo.displayTime = displayTime;
     dict[player] = new MenuTime(menu, DateTime.Now, TimeSpan.FromSeconds(menuInfo.displayTime));
     player.ShowMenu(menuInfo.keys, menuInfo.displayTime, menuInfo.text);
 }