예제 #1
0
 public StarConnectionAppearer(StarConnection conn, sceneAppearInfo[] sceneToPrefab, StarConnectionState connectionState) : base(sceneToPrefab, connectionState.appearableState)
 {
     this.preAppear       = preAppearFunc;
     this.postAppear      = postAppearFunc;
     this.connectionState = connectionState;
     this.conn            = conn;
 }
예제 #2
0
 public StarConnectionModel(StarConnection connection)
 {
     starIds = new long[connection.state.nodes.Length];
     for (var i = 0; i < starIds.Length; i++)
     {
         starIds[i] = connection.state.nodes[i].getId();
     }
 }
예제 #3
0
        public void addConnection(StarConnection connection)
        {
            bool alreadyAdded = connections.Any(existingConnection => existingConnection.Equals(connection));

            if (!alreadyAdded)
            {
                connections.Add((Reference <StarConnection>)connection);
                addAppearable(connection);
            }
        }
예제 #4
0
        public StarConnection makeConnection(StarNode nodeInstance, Reference <StarNode> referencedStarNode)
        {
            StarConnection conn = null;

            if (referencedStarNode.checkExists())
            {
                conn = referencedStarNode.value.enterable.getConnection(nodeInstance.state.id);
            }
            if (conn == null)
            {
                conn = _makeConnection(nodeInstance, referencedStarNode);
            }
            nodeInstance.enterable.addConnection(conn);
            return(conn);
        }
예제 #5
0
 public void addConnection(StarConnection connection)
 {
     state.addConnection(connection);
 }