예제 #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;
		}