/// <summary>Depends on Table-Creation (Third)</summary> public static void Initialize() { ContentMgr.Load <WorldZoneLocation>(); WorldLocationMgr.LocationCache = WorldLocationMgr.WorldLocations.Values.ToArray <INamedWorldZoneLocation>(); WorldLocationMgr.Stormwind = WorldLocationMgr.GetFirstMatch("Stormwind"); WorldLocationMgr.Orgrimmar = WorldLocationMgr.GetFirstMatch("Orgrimmar"); }
public static GossipMenu CreateTeleMenu(List <INamedWorldZoneLocation> locations) { return(WorldLocationMgr.CreateTeleMenu(locations, (Action <GossipConversation, INamedWorldZoneLocation>)((convo, loc) => convo.Character.TeleportTo((IWorldLocation)loc)))); }
/// <summary>Creates a GossipMenu of all locations</summary> /// <returns></returns> public static GossipMenu CreateTeleMenu() { return(WorldLocationMgr.CreateTeleMenu(WorldLocationMgr.WorldLocationList)); }