public TilerPattern(int inputID, int singleOutput) { this.inputID = inputID; type = TilerPatternType.SINGLE; defaultOutput = new int[1] { singleOutput }; }
public TilerPattern(int inputID, TilerPatternType type, int[] tiles, int[] connectsWith = null) { this.inputID = inputID; this.type = type; this.tiles = tiles; if (connectsWith != null) { for (int i = 0; i < connectsWith.Length; ++i) { AddConnect(connectsWith[i]); } } // Self-connect if (type == TilerPatternType.BORDER || type == TilerPatternType.PATH) { AddConnect(inputID); } }
public TilerPattern(int inputID, int[] singleRandomOutput) { this.inputID = inputID; type = TilerPatternType.SINGLE; defaultOutput = singleRandomOutput; }