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


C# LeagueSharp类代码示例

本文整理汇总了C#中LeagueSharp的典型用法代码示例。如果您正苦于以下问题:C# LeagueSharp类的具体用法?C# LeagueSharp怎么用?C# LeagueSharp使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: SetupMenu

 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     ShowPingMisc.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("MISCS_SHOWPING_MAIN"), "SAssembliesMiscsShowPing"));
     ShowPingMisc.MenuItems.Add(
         ShowPingMisc.Menu.AddItem(new MenuItem("SAssembliesMiscsShowPingActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return ShowPingMisc;
 }
开发者ID:kampfi,项目名称:SAwarenessBeta,代码行数:7,代码来源:ShowPing.cs

示例2: SetupMenu

 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     FowWardPlacementWard.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("WARDS_FOWWARDPLACEMENT_MAIN"), "SAssembliesWardsFowWardPlacement"));
     FowWardPlacementWard.MenuItems.Add(
         FowWardPlacementWard.Menu.AddItem(new MenuItem("SAssembliesWardsFowWardPlacementActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return FowWardPlacementWard;
 }
开发者ID:kampfi,项目名称:SAwarenessBeta,代码行数:7,代码来源:FowWardPlacement+-+Kopie.cs

示例3: SetupMenu

 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     CloneTracker.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("TRACKERS_CLONE_MAIN"), "SAssembliesTrackersClone"));
     CloneTracker.MenuItems.Add(
         CloneTracker.Menu.AddItem(new MenuItem("SAssembliesTrackersCloneActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return CloneTracker;
 }
开发者ID:kampfi,项目名称:SAwarenessBeta,代码行数:7,代码来源:Clone.cs

示例4: SetupMenu

 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     var newMenu = Menu.GetSubMenu(menu, "SAssembliesDetectorsSharedExperience");
     if (newMenu == null)
     {
         SharedExperienceDetector.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("DETECTORS_SHAREDEXPERIENCE_MAIN"), "SAssembliesDetectorsSharedExperience"));
         SharedExperienceDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsSharedExperienceResetTime", Language.GetString("DETECTORS_SHAREDEXPERIENCE_RESETTIME")).SetValue(new Slider(60, 120, 1)));
         SharedExperienceDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsSharedExperienceTrackRange", Language.GetString("DETECTORS_SHAREDEXPERIENCE_TRACKRANGE")).SetValue(new Slider(2000, 10000, 100)));
         SharedExperienceDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsSharedExperiencePingTimes", Language.GetString("GLOBAL_PING_TIMES")).SetValue(new Slider(0, 5, 0)));
         SharedExperienceDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsSharedExperiencePingType", Language.GetString("GLOBAL_PING_TYPE")).SetValue(new StringList(new[]
         {
             Language.GetString("GLOBAL_PING_TYPE_NORMAL"),
             Language.GetString("GLOBAL_PING_TYPE_DANGER"),
             Language.GetString("GLOBAL_PING_TYPE_ENEMYMISSING"),
             Language.GetString("GLOBAL_PING_TYPE_ONMYWAY"),
             Language.GetString("GLOBAL_PING_TYPE_FALLBACK"),
             Language.GetString("GLOBAL_PING_ASSISTME")
         })));
         SharedExperienceDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsSharedExperienceLocalPing", Language.GetString("GLOBAL_PING_LOCAL")).SetValue(true));
         SharedExperienceDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsSharedExperienceChat", Language.GetString("GLOBAL_CHAT")).SetValue(false));
         SharedExperienceDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsSharedExperienceNotification", Language.GetString("GLOBAL_NOTIFICATION")).SetValue(false));
         SharedExperienceDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsSharedExperienceVoice", Language.GetString("GLOBAL_VOICE")).SetValue(false));
         SharedExperienceDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsSharedExperienceDrawing", Language.GetString("GLOBAL_DRAWING")).SetValue(false));
         SharedExperienceDetector.CreateActiveMenuItem("SAssembliesDetectorsSharedExperienceActive", () => new SharedExperience());
     }
     return SharedExperienceDetector;
 }
开发者ID:aikoy,项目名称:SSharedExperience,代码行数:27,代码来源:SharedExperience.cs

示例5: SetupMenu

 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     VisionRange.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("RANGES_VISION_MAIN"), "SAssembliesRangesVision"));
     VisionRange.MenuItems.Add(
         VisionRange.Menu.AddItem(new MenuItem("SAssembliesRangesVisionMode", Language.GetString("RANGES_ALL_MODE")).SetValue(new StringList(new[]
         {
             Language.GetString("RANGES_ALL_MODE_ME"),
             Language.GetString("RANGES_ALL_MODE_ENEMY"),
             Language.GetString("RANGES_ALL_MODE_BOTH")
         }))));
     VisionRange.MenuItems.Add(
         VisionRange.Menu.AddItem(new MenuItem("SAssembliesRangesVisionDisplayMe", Language.GetString("RANGES_VISION_ME")).SetValue(false)));
     VisionRange.MenuItems.Add(
         VisionRange.Menu.AddItem(new MenuItem("SAssembliesRangesVisionDisplayChampion", Language.GetString("RANGES_VISION_CHAMPION")).SetValue(false)));
     VisionRange.MenuItems.Add(
         VisionRange.Menu.AddItem(new MenuItem("SAssembliesRangesVisionDisplayTurret", Language.GetString("RANGES_VISION_TURRET")).SetValue(false)));
     VisionRange.MenuItems.Add(
         VisionRange.Menu.AddItem(new MenuItem("SAssembliesRangesVisionDisplayMinion", Language.GetString("RANGES_VISION_MINION")).SetValue(false)));
     VisionRange.MenuItems.Add(
         VisionRange.Menu.AddItem(new MenuItem("SAssembliesRangesVisionDisplayWard", Language.GetString("RANGES_VISION_WARD")).SetValue(false)));
     VisionRange.MenuItems.Add(
         VisionRange.Menu.AddItem(new MenuItem("SAssembliesRangesVisionColorMe", Language.GetString("RANGES_ALL_COLORME")).SetValue(Color.Indigo)));
     VisionRange.MenuItems.Add(
         VisionRange.Menu.AddItem(new MenuItem("SAssembliesRangesVisionColorEnemy", Language.GetString("RANGES_ALL_COLORENEMY")).SetValue(Color.Indigo)));
     VisionRange.MenuItems.Add(
         VisionRange.Menu.AddItem(new MenuItem("SAssembliesRangesVisionActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return VisionRange;
 }
开发者ID:BlueSun99,项目名称:SAwarenessBeta,代码行数:28,代码来源:Vision.cs

示例6: SetupMenu

 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     TurretHealth.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("HEALTHS_TURRET_MAIN"), "SAssembliesHealthsTurret"));
     TurretHealth.MenuItems.Add(
         TurretHealth.Menu.AddItem(new MenuItem("SAssembliesHealthsTurretActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return TurretHealth;
 }
开发者ID:BlueSun99,项目名称:SAwarenessBeta,代码行数:7,代码来源:Turret.cs

示例7: SetupMenu

 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     AutoIgniteActivator.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("ACTIVATORS_AUTOIGNITE_MAIN"), "SAssembliesActivatorsAutoIgnite"));
     AutoIgniteActivator.MenuItems.Add(
         AutoIgniteActivator.Menu.AddItem(new MenuItem("SAssembliesActivatorsAutoIgniteActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return AutoIgniteActivator;
 }
开发者ID:kampfi,项目名称:SAwarenessBeta,代码行数:7,代码来源:AutoIgnite.cs

示例8: SetupMenu

 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     SurrenderVoteMisc.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("MISCS_SURRENDERVOTE_MAIN"), "SAssembliesMiscsSurrenderVote"));
     SurrenderVoteMisc.MenuItems.Add(
         SurrenderVoteMisc.Menu.AddItem(new MenuItem("SAssembliesMiscsSurrenderVoteActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return SurrenderVoteMisc;
 }
开发者ID:kampfi,项目名称:SAwarenessBeta,代码行数:7,代码来源:SurrenderVote.cs

示例9: SetupMenu

 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     SafeFlashMisc.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("MISCS_SAFEFLASH_MAIN"), "SAssembliesMiscsSafeFlash"));
     SafeFlashMisc.MenuItems.Add(
         SafeFlashMisc.Menu.AddItem(new MenuItem("SAssembliesMiscsSafeFlashActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return SafeFlashMisc;
 }
开发者ID:BlueSun99,项目名称:SAwarenessBeta,代码行数:7,代码来源:SafeFlash.cs

示例10: IsPositionSafe

        // use underTurret and .Extend for this please
        public static bool IsPositionSafe(AIHeroClient target, LeagueSharp.Common.Spell spell)
        {
            var predPos = spell.GetPrediction(target).UnitPosition.LSTo2D();
            var myPos = ObjectManager.Player.Position.LSTo2D();
            var newPos = (target.Position.LSTo2D() - myPos);
            newPos.Normalize();

            var checkPos = predPos + newPos*(spell.Range - Vector2.Distance(predPos, myPos));
            Obj_Turret closestTower = null;

            foreach (var tower in ObjectManager.Get<Obj_Turret>()
                .Where(tower => tower.IsValid && !tower.IsDead && Math.Abs(tower.Health) > float.Epsilon)
                .Where(tower => Vector3.Distance(tower.Position, ObjectManager.Player.Position) < 1450))
            {
                closestTower = tower;
            }

            if (closestTower == null)
                return true;

            if (Vector2.Distance(closestTower.Position.LSTo2D(), checkPos) <= 910)
                return false;

            return true;
        }
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:26,代码来源:Quinn.cs

示例11: SetupMenu

 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     GankDetector.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("DETECTORS_GANK_MAIN"), "SAssembliesDetectorsGank"));
     GankDetector.MenuItems.Add(
         GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankPingTimes", Language.GetString("GLOBAL_PING_TIMES")).SetValue(new Slider(0, 5, 0))));
     GankDetector.MenuItems.Add(
         GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankPingType", Language.GetString("GLOBAL_PING_TYPE")).SetValue(new StringList(new[]
         {
             Language.GetString("GLOBAL_PING_TYPE_NORMAL"),
             Language.GetString("GLOBAL_PING_TYPE_DANGER"),
             Language.GetString("GLOBAL_PING_TYPE_ENEMYMISSING"),
             Language.GetString("GLOBAL_PING_TYPE_ONMYWAY"),
             Language.GetString("GLOBAL_PING_TYPE_FALLBACK"),
             Language.GetString("GLOBAL_PING_ASSISTME")
         }))));
     GankDetector.MenuItems.Add(
         GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankLocalPing", Language.GetString("GLOBAL_PING_LOCAL")).SetValue(true)));
     GankDetector.MenuItems.Add(
         GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankChat", Language.GetString("GLOBAL_CHAT")).SetValue(false)));
     GankDetector.MenuItems.Add(
         GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankNotification", Language.GetString("GLOBAL_NOTIFICATION")).SetValue(false)));
     GankDetector.MenuItems.Add(
         GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankTrackRangeMin", Language.GetString("DETECTORS_GANK_RANGE_MIN")).SetValue(new Slider(1, 10000, 1))));
     GankDetector.MenuItems.Add(
         GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankTrackRangeMax", Language.GetString("DETECTORS_GANK_RANGE_MAX")).SetValue(new Slider(1, 10000, 1))));
     GankDetector.MenuItems.Add(
         GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankDisableTime", Language.GetString("DETECTORS_GANK_DISABLETIME")).SetValue(new Slider(20, 180, 1))));
     GankDetector.MenuItems.Add(
         GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankShowJungler", Language.GetString("DETECTORS_GANK_SHOWJUNGLER")).SetValue(false)));
     GankDetector.MenuItems.Add(
         GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankVoice", Language.GetString("GLOBAL_VOICE")).SetValue(false)));
     GankDetector.MenuItems.Add(
         GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return GankDetector;
 }
开发者ID:BlueSun99,项目名称:SAwarenessBeta,代码行数:35,代码来源:Gank.cs

示例12: SetupMenu

 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     ExecuteTimer.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("TIMERS_EXECUTE_MAIN"), "SAssembliesTimersExecute"));
     ExecuteTimer.MenuItems.Add(
         ExecuteTimer.Menu.AddItem(new MenuItem("SAssembliesTimersExecuteActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return ExecuteTimer;
 }
开发者ID:BlueSun99,项目名称:SAwarenessBeta,代码行数:7,代码来源:Execute.cs

示例13: SetupMenu

 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     DestinationTracker.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("TRACKERS_DESTINATION_MAIN"), "SAssembliesTrackersDestination"));
     DestinationTracker.MenuItems.Add(
         DestinationTracker.Menu.AddItem(new MenuItem("SAssembliesTrackersDestinationActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return DestinationTracker;
 }
开发者ID:BlueSun99,项目名称:SAwarenessBeta,代码行数:7,代码来源:Destination.cs

示例14: SetupMenu

 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     AntiNexusTurretMisc.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("MISCS_ANTINEXUSTURRET_MAIN"), "SAssembliesMiscsAntiNexusTurret"));
     AntiNexusTurretMisc.MenuItems.Add(
         AntiNexusTurretMisc.Menu.AddItem(new MenuItem("SAssembliesMiscsAntiNexusTurretActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return AntiNexusTurretMisc;
 }
开发者ID:kampfi,项目名称:SAwarenessBeta,代码行数:7,代码来源:AntiNexusTurret.cs

示例15: SetupMenu

 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     SmartPingImproveMisc.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("MISCS_SMARTPINGIMPROVE_MAIN"), "SAssembliesMiscsSmartPingImprove"));
     SmartPingImproveMisc.MenuItems.Add(
         SmartPingImproveMisc.Menu.AddItem(new MenuItem("SAssembliesMiscsSmartPingImproveActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return SmartPingImproveMisc;
 }
开发者ID:kampfi,项目名称:SAwarenessBeta,代码行数:7,代码来源:SmartPingImprove.cs


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