public StarConnectionAppearer(StarConnection conn, sceneAppearInfo[] sceneToPrefab, StarConnectionState connectionState) : base(sceneToPrefab, connectionState.appearableState)
 {
     this.preAppear       = preAppearFunc;
     this.postAppear      = postAppearFunc;
     this.connectionState = connectionState;
     this.conn            = conn;
 }
Example #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();
     }
 }
Example #3
0
        public void addConnection(StarConnection connection)
        {
            bool alreadyAdded = connections.Any(existingConnection => existingConnection.Equals(connection));

            if (!alreadyAdded)
            {
                connections.Add((Reference <StarConnection>)connection);
                addAppearable(connection);
            }
        }
Example #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);
        }
Example #5
0
 public void addConnection(StarConnection connection)
 {
     state.addConnection(connection);
 }