public TeleportNode AddNode(TeleportNode node) { Nodes.Add(node); if (m_inited) { node.Spawn(); } return(node); }
/// <summary> /// Creates a normal-looking portal to represent a node in the network /// </summary> public static WorldObject CreateDefaultPortal(TeleportNode node, Map map, Vector3 pos) { var teleportMenu = WorldLocationMgr.CreateTeleMenu(node.Destinations); var portalEntry = GOMgr.GetEntry(DefaultPortalGOid); var go = portalEntry.Spawn(map, pos); go.State = GameObjectState.Enabled; go.ScaleX = 1.5f; go.GossipMenu = teleportMenu; return(go); }
public TeleportNode AddNode(TeleportNode node) { Nodes.Add(node); if (m_inited) { node.Spawn(); } return node; }
/// <summary> /// Creates a normal-looking portal to represent a node in the network /// </summary> public static WorldObject CreateDefaultPortal(TeleportNode node) { var teleportMenu = WorldLocationMgr.CreateTeleMenu(node.Destinations); var portalEntry = GOMgr.GetEntry(DefaultPortalGOid); var go = portalEntry.Create(); go.State = GameObjectState.Enabled; go.ScaleX = 1.5f; go.Handler = new GossipGOHandler(teleportMenu); return go; }
/// <summary> /// Creates a normal-looking portal to represent a node in the network /// </summary> public static WorldObject CreateDefaultPortal(TeleportNode node, Map map, Vector3 pos) { var teleportMenu = WorldLocationMgr.CreateTeleMenu(node.Destinations); var portalEntry = GOMgr.GetEntry(DefaultPortalGOid); var go = portalEntry.Spawn(map, pos); go.State = GameObjectState.Enabled; go.ScaleX = 1.5f; go.GossipMenu = teleportMenu; return go; }