Added resources to the game and prepared scripts for later usage
This commit is contained in:
@@ -6,7 +6,6 @@ using Godot;
|
||||
public class WFC
|
||||
{
|
||||
public static Dictionary<string, Dictionary<Direction, List<string>>> adjacency = new Dictionary<string, Dictionary<Direction, List<string>>>();
|
||||
public static Random rand = new Random();
|
||||
public enum Direction
|
||||
{
|
||||
Backward,
|
||||
@@ -217,7 +216,7 @@ public class WFC
|
||||
while (true)
|
||||
{
|
||||
if (toCheck.Count <= 0) break;
|
||||
int index = rand.Next(toCheck.Count);
|
||||
int index = GameData.rand.Next(toCheck.Count);
|
||||
position = toCheck[index];
|
||||
toCheck[index] = toCheck[^1];
|
||||
toCheck.RemoveAt(toCheck.Count - 1);
|
||||
|
||||
Reference in New Issue
Block a user