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