Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

690 B
Raw Blame
#nullable enable
using Statecraft.Game.Map.Construction;
using UnityEditor;
using UnityEngine;

namespace Statecraft.Editor.Construction
{
    /// <summary>Gives the construction reveal its Dust and Stone template materials in the editor. They live under
    /// Assets/Editor, so player builds carry none of them until a gameplay caller loads them behind the opt-in.</summary>
    [InitializeOnLoad]
    static class ConstructionMaterials
    {
        public const string Folder = "Assets/Editor/Construction/Materials/";
        static ConstructionMaterials() =>
            ConstructionReveal.Templates = name => AssetDatabase.LoadAssetAtPath<Material>(Folder + name + ".mat");
    }
}