Exemple #1
0
 public TilerPattern(int inputID, int singleOutput)
 {
     this.inputID  = inputID;
     type          = TilerPatternType.SINGLE;
     defaultOutput = new int[1] {
         singleOutput
     };
 }
Exemple #2
0
        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);
            }
        }
Exemple #3
0
 public TilerPattern(int inputID, int[] singleRandomOutput)
 {
     this.inputID  = inputID;
     type          = TilerPatternType.SINGLE;
     defaultOutput = singleRandomOutput;
 }