Files
RuinAdventurer/Scripts/Helpers/GameData.cs
T

40 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using Godot;
public partial class GameData
{
public static bool DEBUGMODE = true;
public static Random rand = new Random(seed);
public static Layer[] map;
//Current layer the player wants to see
public static int currentLayer = 0;
//The layer that is currently visible
public static int visibleLayer = 0;
//Determines if the player can move the camera or not (Necessary for input and options menu)
public static bool canMove = true;
public static int maxRobotCount = 1000;
public static List<Robot> robots = new List<Robot>();
public static float robotSpeed = 20f;
public static float tileWidth = 6;
public static float tileHeight = 4;
public static SortedDictionary<string, ItemData> availableItems = ResourceLoader.LoadItems();
public static Dictionary<string, Research> availableResearch = ResourceLoader.LoadResearch();
//--- PLAYER ADJUSTABLE VALUES ---
//Color used in primary objects (e.g. Robots)
public static Color primaryColor = new Color("#276ac2");
//Color used in lights
public static Color lightColor = new Color("#7efff5");
//Amount of layers generated
public static int ruinSize = 10;
//Width+Height of layers
public static int layerSize = 20;
//Seed used for all random generation except WFC
public static int seed = 12345;
//--- PLAYER VALUES ---
public static Inventory inventory = new Inventory();
}