Initial board state and tile info data setup, unit tests for board setup / serializer

Framework for the full tile type color matching, but it's all data structures and validating the structure
This commit is contained in:
Texel 2023-01-24 09:07:23 -05:00 committed by Touhexel
parent 9b69003715
commit 6cc1092872
5 changed files with 313 additions and 0 deletions

View file

@ -0,0 +1,10 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// Helper method for randomly rolling from a generic array
public static class RandomFromArray {
public static T GetRandom<T>(this T[] array) {
return array[Random.Range(0, array.Length)];
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e6a7d58d735c2354ca8b3d974cd906ea
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: