Added resources to the game and prepared scripts for later usage
This commit is contained in:
@@ -7,12 +7,12 @@ public partial class Tile
|
||||
{
|
||||
public Dictionary<string, MeshInstance3D> tileMeshes;
|
||||
public string collapsedMesh;
|
||||
Random rand = new Random();
|
||||
public Vector3 Position;
|
||||
public Vector2I GridPosition;
|
||||
public Node3D ContentNode;
|
||||
|
||||
public bool containsLight, containsDecoration, containsResource;
|
||||
public GameResource resource;
|
||||
|
||||
|
||||
public void SetMeshes(Dictionary<string, MeshInstance3D> tileMeshes)
|
||||
@@ -38,7 +38,7 @@ public partial class Tile
|
||||
totalWeight += WFC.weights[tile];
|
||||
}
|
||||
|
||||
float r = (float)(rand.NextDouble() * totalWeight);
|
||||
float r = (float)(GameData.rand.NextDouble() * totalWeight);
|
||||
|
||||
float cumulative = 0f;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user