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; }
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; }
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", }; }