void ActiveAKill() { if (KillsToBeAdded.Count != 0) { bool test = true; foreach (Kill aKill in Kills) { if (!aKill.MoveFinished) { test = false; break; } } if (test) { //Move down everything foreach (Kill aKill in Kills) { aKill.MoveDown(); } Kill kill = KillsToBeAdded[0]; Panel.AddChild(kill); Kills.Add(kill); KillsToBeAdded.Remove(kill); kill.Active(); } } }
/// <summary> /// Restore player's data from a Player object /// </summary> /// <param name="player"></param> public void BackupFromPlayer(Player player) { Kills.Clear(); foreach (KillEvent e in player.Kills) { Kills.Add(e); } Deaths.Clear(); foreach (KillEvent e in player.Deaths) { Deaths.Add(e); } Assists.Clear(); foreach (KillEvent e in player.Assists) { Assists.Add(e); } Clutches.Clear(); foreach (ClutchEvent e in player.Clutches) { Clutches.Add(e); } EntryHoldKills.Clear(); foreach (EntryHoldKillEvent e in player.EntryHoldKills) { EntryHoldKills.Add(e); } EntryKills.Clear(); foreach (EntryKillEvent e in player.EntryKills) { EntryKills.Add(e); } PlayersHurted.Clear(); foreach (PlayerHurtedEvent e in player.PlayersHurted) { PlayersHurted.Add(e); } RoundsMoneyEarned.Clear(); foreach (KeyValuePair <int, int> kvp in player.RoundsMoneyEarned) { RoundsMoneyEarned.Add(kvp.Key, kvp.Value); } StartMoneyRounds.Clear(); foreach (KeyValuePair <int, int> kvp in player.StartMoneyRounds) { StartMoneyRounds.Add(kvp.Key, kvp.Value); } EquipementValueRounds.Clear(); foreach (KeyValuePair <int, int> kvp in player.EquipementValueRounds) { EquipementValueRounds.Add(kvp.Key, kvp.Value); } AssistCount = player.AssistCount; BombDefusedCount = player.BombDefusedCount; BombExplodedCount = player.BombExplodedCount; BombPlantedCount = player.BombPlantedCount; CrouchKillCount = player.CrouchKillCount; DeathCount = player.DeathCount; DecoyThrownCount = player.DecoyThrownCount; EseaRws = player.EseaRws; EseaRwsPointCount = player.EseaRwsPointCount; FiveKillCount = player.FiveKillCount; FlashbangThrownCount = player.FlashbangThrownCount; FlashDurationTemp = player.FlashDurationTemp; FourKillCount = player.FourKillCount; HasBomb = player.HasBomb; HasEntryHoldKill = player.HasEntryHoldKill; HasEntryKill = player.HasEntryKill; HeadshotCount = player.HeadshotCount; HeGrenadeThrownCount = player.HeGrenadeThrownCount; IsAlive = player.IsAlive; IncendiaryThrownCount = player.IncendiaryThrownCount; IsConnected = player.IsConnected; IsControllingBot = player.IsControllingBot; JumpKillCount = player.JumpKillCount; KillCount = player.KillCount; MolotovThrownCount = player.MolotovThrownCount; OneKillCount = player.OneKillCount; RatingHltv = player.RatingHltv; RoundMvpCount = player.RoundMvpCount; RoundPlayedCount = player.RoundPlayedCount; Score = player.Score; Side = player.Side; SmokeThrownCount = player.SmokeThrownCount; TeamKillCount = player.TeamKillCount; TeamName = player.TeamName; ThreeKillCount = player.ThreeKillCount; TradeDeathCount = player.TradeDeathCount; TradeKillCount = player.TradeKillCount; TwoKillCount = player.TwoKillCount; }
public override void ReceiveExtraAI(BinaryReader reader) { projectile.owner = reader.ReadInt32(); int starType = reader.ReadInt32(); int crossType = reader.ReadInt32(); int moonType = reader.ReadInt32(); projectile.damage = reader.ReadInt32(); bool minionCaster = reader.ReadBoolean(); Caster = minionCaster ? Main.projectile[reader.ReadInt32()] : (Entity)Main.player[reader.ReadInt32()]; List <GlyphModifier> modifiers = new List <GlyphModifier>(); int count = reader.ReadInt32(); for (int i = 0; i < count; i += 1) { modifiers.Add(GlyphModifier.Modifiers[reader.ReadInt32()]); } if (Source == null) { Source = new ProceduralSpell(mod); Source.Glyphs[(byte)GlyphType.Star].SetDefaults(starType, true); Source.Glyphs[(byte)GlyphType.Cross].SetDefaults(crossType, true); Source.Glyphs[(byte)GlyphType.Moon].SetDefaults(moonType, true); Source.ModifierOverride = modifiers; } foreach (Item item in Source.Glyphs) { Glyph glyph = (Glyph)item.modItem; if (glyph.GetAiAction() != null) { Ai.Add(glyph.GetAiAction()); } if (glyph.GetInitAction() != null) { Inits.Add(glyph.GetInitAction()); } if (glyph.GetImpactAction() != null) { Impacts.Add(glyph.GetImpactAction()); } if (glyph.GetKillAction() != null) { Kills.Add(glyph.GetKillAction()); } } foreach (GlyphModifier modifier in modifiers) { if (modifier.Impact != null) { Impacts.Add(modifier.Impact); } if (modifier.Draw != null) { SpellDraw.Add(modifier.Draw); } if (modifier.Init != null) { Inits.Add(modifier.Init); } } Initialize(); }
public TestQuest() { Kills.Add(new QuestKill(GameMainRecycle.NpcUnits.Group[typeof(TestEnemy).Name].GetType().Name, 3)); Name = "测试任务"; Describe = string.Format("用于测试的任务,击杀{1}个<{0}>用于测试运行。", Kills[0].NpcName, Kills[0].KillCont); }
public Java(string ip, bool bits) : base(ip) { x64 = bits; Kills.Add("javaws.exe"); Kills.Add("jusched.exe"); }
public void AddKill(string withWeapon, bool headShot, int round) { Kills.Add(new Kill(withWeapon, headShot, DateTime.Now, round, Id)); HeadshotPercent = kills.Count(kill => kill.Headshot) / (float)kills.Count; }
public TestQuest3() { Kills.Add(new QuestKill(GameMainRecycle.NpcUnits.Group[typeof(TestEnemy).Name].GetType().Name, 1)); Name = "测试任务"; Describe = string.Format("用于测试的任务,击杀{1}个<{0}>用于测试运行打发打发垃圾堆了估计案例爱丽丝的感觉阿桑的歌就爱上了大概案件数量的噶啥的两个空间爱上了大哥爱上了大哥。", Kills[0].NpcName, Kills[0].KillCont); }