Ejemplo n.º 1
0
 public TeleportNode AddNode(TeleportNode node)
 {
     Nodes.Add(node);
     if (m_inited)
     {
         node.Spawn();
     }
     return(node);
 }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
		public TeleportNode AddNode(TeleportNode node)
		{
			Nodes.Add(node);
			if (m_inited)
			{
				node.Spawn();
			}
			return node;
		}
Ejemplo n.º 4
0
		/// <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;
		}
Ejemplo n.º 5
0
		/// <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;
		}