GlobalState.java
package io.github.unisim;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputProcessor;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* Contains a collection of settings and references that should be available globally.
*/
public class GlobalState {
public static Color UIPrimaryColour = new Color(0.250f, 0.326f, 0.865f, 1.0f);
public static Color UISecondaryColour = new Color(0.722f, 0.646f, 0.953f, 1.0f);
public static Skin defaultSkin = new Skin(Gdx.files.internal("ui/uiskin.json"));
public static Settings settings = new Settings();
public static InputProcessor fullscreenInputProcessor = new FullscreenInputProcessor();
// Create an unmodifiable set containing the IDs of all buildable tiles
// we use a set to make searching more efficient
public static Set<Integer> buildableTiles = Stream.of(
14, 15).collect(Collectors.toUnmodifiableSet()
);
}