Aura.Channel.World.Entities.Creatures.CreatureQuests.GetSafe C# (CSharp) Method

GetSafe() public method

Calls Get(long). If the result is null, throws SevereViolation.
public GetSafe ( long uniqueId ) : Aura.Channel.World.Quests.Quest
uniqueId long
return Aura.Channel.World.Quests.Quest
		public Quest GetSafe(long uniqueId)
		{
			var quest = this.Get(uniqueId);
			if (quest == null)
				throw new SevereViolation("Creature does not have quest 0x{0:X}", uniqueId);

			return quest;
		}