示例#1
0
文件: NPC.Pet.cs 项目: NVN/WCell
		private void UpdateTalentSpellRecords()
		{
			var spellList = new List<PetTalentSpellRecord>();
			foreach (var spell in NPCSpells)
			{
				var cdTicks = NPCSpells.TicksUntilCooldown(spell);
				var cdTime = DateTime.Now.AddMilliseconds(cdTicks * Region.UpdateDelay);
				var spellRecord = new PetTalentSpellRecord
									{
										SpellId = spell.Id,
										CooldownUntil = cdTime
									};
				spellList.Add(spellRecord);
			}
			// TODO: Implement
			// PetRecord.Spells = spellList;
		}
示例#2
0
		private void UpdateTalentSpellRecords()
		{
			var spellList = new List<PetTalentSpellRecord>();
			foreach (var spell in NPCSpells)
			{
				var cdMillis = NPCSpells.GetRemainingCooldownMillis(spell);
				var spellRecord = new PetTalentSpellRecord
				{
					SpellId = spell.Id,
					CooldownUntil = DateTime.Now.AddMilliseconds(cdMillis)
				};
				spellList.Add(spellRecord);
			}
			// TODO: Implement
			// PetRecord.Spells = spellList;
		}