public Npc(string name, int entryId, WowMapId mapId, WowZoneId zoneId, Vector3 position, NpcType type, NpcSubType subType = NpcSubType.None) { Name = name; EntryId = entryId; MapId = mapId; ZoneId = zoneId; Position = position; Type = type; SubType = subType; }
internal static bool IsCapitalCityZone(this WowZoneId zone, bool isAlliance) { if (isAlliance) { return(zone == WowZoneId.StormwindCity || zone == WowZoneId.Ironforge || zone == WowZoneId.Teldrassil || zone == WowZoneId.TheExodar); } else { return(zone == WowZoneId.Orgrimmar || zone == WowZoneId.Undercity || zone == WowZoneId.ThunderBluff || zone == WowZoneId.SilvermoonCity); } }