コード例 #1
0
 public WardTrackerInfo(WardData wardData, Vector3 position, Obj_AI_Base wardObject, bool fromMissile = false, float timestamp = 0)
 {
     WardData        = wardData;
     Position        = position;
     WardObject      = wardObject;
     UnknownDuration = fromMissile;
     Timestamp       = timestamp == 0 ? Variables.TickCount : timestamp;
     EndTime         = Timestamp + wardData.Duration;
 }
コード例 #2
0
ファイル: WardTracker.cs プロジェクト: Hikii/LeagueSharpSDK
 public WardTrackerInfo(
     WardData wardData,
     Vector3 position,
     Obj_AI_Base wardObject,
     bool fromMissile = false,
     float timestamp  = 0)
 {
     WardData        = wardData;
     Position        = position;
     WardObject      = wardObject;
     UnknownDuration = fromMissile;
     // ReSharper disable once CompareOfFloatsByEqualityOperator
     Timestamp = timestamp == 0 ? Variables.TickCount : timestamp;
     EndTime   = Timestamp + wardData.Duration;
 }
コード例 #3
0
ファイル: WardTracker.cs プロジェクト: Hikii/LeagueSharpSDK
        private static void LoadWardDatabase()
        {
            //Trinkets:
            wardDatabase.Add(
                new WardData
            {
                Duration   = 1 * 60 * 1000,
                ObjectName = "YellowTrinket",
                Range      = 1100,
                SpellName  = "TrinketTotemLvl1",
            });

            wardDatabase.Add(
                new WardData
            {
                Duration   = 2 * 60 * 1000,
                ObjectName = "YellowTrinketUpgrade",
                Range      = 1100,
                SpellName  = "TrinketTotemLvl2",
            });

            wardDatabase.Add(
                new WardData
            {
                Duration   = int.MaxValue,
                ObjectName = "VisionWard",
                Range      = 1100,
                SpellName  = "VisionWard",
            });

            wardDatabase.Add(
                new WardData
            {
                Duration   = int.MaxValue,
                ObjectName = "BlueTrinket",
                Range      = 1100,
                SpellName  = "TrinketOrbLvl3",
            });


            wardDatabase.Add(
                new WardData
            {
                Duration   = 3 * 60 * 1000,
                ObjectName = "SightWard",
                Range      = 1100,
                SpellName  = "TrinketTotemLvl3",
            });
            //Ward items and normal wards:
            wardDatabase.Add(
                new WardData
            {
                Duration   = 3 * 60 * 1000,
                ObjectName = "SightWard",
                Range      = 1100,
                SpellName  = "SightWard",
            });

            wardDatabase.Add(
                new WardData
            {
                Duration   = 3 * 60 * 1000,
                ObjectName = "SightWard",
                Range      = 1100,
                SpellName  = "ItemGhostWard",
            });

            MissileWardData =
                new WardData
            {
                Duration   = 3 * 60 * 1000,
                ObjectName = "MissileWard",
                Range      = 1100,
                SpellName  = "MissileWard",
            };
        }
コード例 #4
0
ファイル: WardTracker.cs プロジェクト: yashine59fr/PortAIO-1
        private static void LoadWardDatabase()
        {
            //Trinkets:
            wardDatabase.Add(
            new WardData
            {
                Duration = 1 * 60 * 1000,
                ObjectName = "YellowTrinket",
                Range = 1100,
                SpellName = "TrinketTotemLvl1",
            });

            wardDatabase.Add(
            new WardData
            {
                Duration = 2 * 60 * 1000,
                ObjectName = "YellowTrinketUpgrade",
                Range = 1100,
                SpellName = "TrinketTotemLvl2",
            });

            wardDatabase.Add(
            new WardData
            {
                Duration = int.MaxValue,
                ObjectName = "VisionWard",
                Range = 1100,
                SpellName = "VisionWard",
            });

            wardDatabase.Add(
            new WardData
            {
                Duration = int.MaxValue,
                ObjectName = "BlueTrinket",
                Range = 1100,
                SpellName = "TrinketOrbLvl3",
            });

            wardDatabase.Add(
            new WardData
            {
                Duration = 3 * 60 * 1000,
                ObjectName = "SightWard",
                Range = 1100,
                SpellName = "TrinketTotemLvl3",
            });
            //Ward items and normal wards:
            wardDatabase.Add(
            new WardData
            {
                Duration = 3 * 60 * 1000,
                ObjectName = "SightWard",
                Range = 1100,
                SpellName = "SightWard",
            });

            wardDatabase.Add(
            new WardData
            {
                Duration = 3 * 60 * 1000,
                ObjectName = "SightWard",
                Range = 1100,
                SpellName = "ItemGhostWard",
            });

            MissileWardData =
            new WardData
            {
                Duration = 3 * 60 * 1000,
                ObjectName = "MissileWard",
                Range = 1100,
                SpellName = "MissileWard",
            };
        }
コード例 #5
0
ファイル: WardTracker.cs プロジェクト: yashine59fr/PortAIO-1
 public WardTrackerInfo(WardData wardData, Vector3 position, Obj_AI_Base wardObject, bool fromMissile = false, float timestamp = 0)
 {
     WardData = wardData;
     Position = position;
     WardObject = wardObject;
     UnknownDuration = fromMissile;
     Timestamp = timestamp == 0 ? Variables.TickCount : timestamp;
     EndTime = Timestamp + wardData.Duration;
 }
コード例 #6
0
 public WardTrackerInfo(
     WardData wardData,
     Vector3 position,
     Obj_AI_Base wardObject,
     bool fromMissile = false,
     float timestamp = 0)
 {
     WardData = wardData;
     Position = position;
     WardObject = wardObject;
     UnknownDuration = fromMissile;
     // ReSharper disable once CompareOfFloatsByEqualityOperator
     Timestamp = timestamp == 0 ? Variables.TickCount : timestamp;
     EndTime = Timestamp + wardData.Duration;
 }