当前位置: 首页>>代码示例>>C#>>正文


C# SpellSlot.Count方法代码示例

本文整理汇总了C#中SpellSlot.Count方法的典型用法代码示例。如果您正苦于以下问题:C# SpellSlot.Count方法的具体用法?C# SpellSlot.Count怎么用?C# SpellSlot.Count使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SpellSlot的用法示例。


在下文中一共展示了SpellSlot.Count方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddKillstealMenu

 //TODO make it better?
 public static void AddKillstealMenu(this Menu menu, SpellSlot[] spells, bool[] values)
 {
     for (int i = 0; i < spells.Count(); i++)
     {
         menu.AddItem(
             new MenuItem(
                 "com.idzkatarina.killsteal.use" + GetStringFromSpellSlot(spells[i]).ToLowerInvariant(),
                 "Use " + GetStringFromSpellSlot(spells[i]) + " Killsteal"));
     }
 }
开发者ID:firas500,项目名称:LSharpDZiJava,代码行数:11,代码来源:MenuHelper.cs

示例2: AddModeMenu

 public static void AddModeMenu(this LeagueSharp.Common.Menu menu, Mode mode, SpellSlot[] spellList, bool[] values)
 {
     for (var i = 0; i < spellList.Count(); i++)
     {
         menu.AddItem(
             new MenuItem(
                 BaseName + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".use" + GetStringFromSpellSlot(spellList[i]).ToLowerInvariant() + GetStringFromMode(mode),
                 "Use " + GetStringFromSpellSlot(spellList[i]) + " " + GetFullNameFromMode(mode)).SetValue(values[i]));
     }
 }
开发者ID:DZ191,项目名称:LeagueSharp,代码行数:10,代码来源:ModesMenuExtensions.cs

示例3: AddModeMenu

 public static void AddModeMenu(this Menu menu, Mode mode, SpellSlot[] spellList, bool[] values)
 {
     for (var i = 0; i < spellList.Count(); i++)
     {
         menu.AddItem(
             new MenuItem(
                 "dzaio.champion."+DZAIO.Player.ChampionName.ToLowerInvariant()+".use" + GetStringFromSpellSlot(spellList[i]).ToLowerInvariant() + GetStringFromMode(mode),
                 "Use " + GetStringFromSpellSlot(spellList[i]) + " " + GetFullNameFromMode(mode)).SetValue(values[i]));
     }
 }
开发者ID:ShineSharp,项目名称:LeagueSharp-5,代码行数:10,代码来源:MenuHelper.cs

示例4: AddModeMenu

 public static void AddModeMenu(this Menu menu, Mode mode, SpellSlot[] spellList, bool[] values)
 {
     for (var i = 0; i < spellList.Count(); i++)
     {
         menu.Add(
             new MenuBool(
                 "dz191.vhr." + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".use" + GetStringFromSpellSlot(spellList[i]).ToLowerInvariant() + GetStringFromMode(mode),
                 "Use " + GetStringFromSpellSlot(spellList[i]) + " " + GetFullNameFromMode(mode),
                 values[i]));
     }
 }
开发者ID:evangelineak1026,项目名称:LeagueSharp,代码行数:11,代码来源:MenuHelper.cs

示例5: AddModeMenu

 public static void AddModeMenu(this Menu menu, Mode mode, SpellSlot[] spellList, bool[] values)
 {
     for (var i = 0; i < spellList.Count(); i++)
     {
         menu.AddItem(
             new MenuItem(
                 "com.idzlucian.use" + GetStringFromSpellSlot(spellList[i]).ToLowerInvariant() +
                 GetStringFromMode(mode),
                 "Use " + GetStringFromSpellSlot(spellList[i]) + " " + GetFullNameFromMode(mode)).SetValue(
                     values[i]));
     }
 }
开发者ID:firas500,项目名称:LSharpDZiJava,代码行数:12,代码来源:MenuHelper.cs

示例6: AddManaManager

 public static void AddManaManager(this LeagueSharp.Common.Menu menu, Mode mode, SpellSlot[] spellList, int[] manaCosts)
 {
     var mmMenu = new LeagueSharp.Common.Menu("Mana Manager", BaseName + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".mm." + GetStringFromMode(mode));
     for (var i = 0; i < spellList.Count(); i++)
     {
         mmMenu.AddItem(
             new MenuItem(
                 BaseName + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".manamanager." + GetStringFromSpellSlot(spellList[i]).ToLowerInvariant() + "mana" + GetStringFromMode(mode).ToLowerInvariant(),
                 GetStringFromSpellSlot(spellList[i]) + " Mana").SetValue(new Slider(manaCosts[i])));
     }
     menu.AddSubMenu(mmMenu);
 }
开发者ID:DZ191,项目名称:LeagueSharp,代码行数:12,代码来源:ModesMenuExtensions.cs

示例7: AddManaManager

 public static void AddManaManager(this Menu menu, Mode mode, SpellSlot[] spellList, int[] manaCosts)
 {
     var mmMenu = new Menu("Mana Manager", "com.idzlucian.mm." + GetStringFromMode(mode));
     for (var i = 0; i < spellList.Count(); i++)
     {
         mmMenu.AddItem(
             new MenuItem(
                 "com.idzlucian.manamanager." + GetStringFromSpellSlot(spellList[i]).ToLowerInvariant() + "mana" +
                 GetStringFromMode(mode).ToLowerInvariant(), GetStringFromSpellSlot(spellList[i]) + " Mana")
                 .SetValue(new Slider(manaCosts[i])));
     }
     menu.AddSubMenu(mmMenu);
 }
开发者ID:firas500,项目名称:LSharpDZiJava,代码行数:13,代码来源:MenuHelper.cs

示例8: AddManaManager

 public static void AddManaManager(this Menu menu, Mode mode, SpellSlot[] spellList, int[] manaCosts)
 {
     var mmMenu = new Menu("Mana Manager", "dz191.vhr." + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".mm." + GetStringFromMode(mode));
     for (var i = 0; i < spellList.Count(); i++)
     {
         mmMenu.Add(
             new MenuSlider(
                 "dz191.vhr." + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".manamanager." + GetStringFromSpellSlot(spellList[i]).ToLowerInvariant() + "mana" + GetStringFromMode(mode).ToLowerInvariant(),
                 GetStringFromSpellSlot(spellList[i]) + " Mana",
                 manaCosts[i]));
     }
     menu.Add(mmMenu);
 }
开发者ID:evangelineak1026,项目名称:LeagueSharp,代码行数:13,代码来源:MenuHelper.cs


注:本文中的SpellSlot.Count方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。