コード例 #1
0
 public TeleportNode AddNode(TeleportNode node)
 {
     Nodes.Add(node);
     if (m_inited)
     {
         node.Spawn();
     }
     return(node);
 }
コード例 #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);
        }
コード例 #3
0
ファイル: TeleportNetwork.cs プロジェクト: ray2006/WCell
		public TeleportNode AddNode(TeleportNode node)
		{
			Nodes.Add(node);
			if (m_inited)
			{
				node.Spawn();
			}
			return node;
		}
コード例 #4
0
ファイル: TeleportNetwork.cs プロジェクト: ray2006/WCell
		/// <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;
		}
コード例 #5
0
ファイル: TeleportNetwork.cs プロジェクト: KroneckerX/WCell
		/// <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;
		}