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