Exemplo n.º 1
0
        public Runtime(RuntimeSettings settings)
        {
            Settings = settings;
            RuntimeHandler.Register(this);

            _sounds = new Sounds(this);
        }
Exemplo n.º 2
0
        public static void Register(IRuntime runtime)
        {
            if (_instance != null)
            {
                throw new Exception("Only one runtime can be registered.");
            }

            _instance = new RuntimeHandler(runtime);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Fire-eggs 20190704: for unit testing, reset
 /// </summary>
 internal static void Wipe()
 {
     _instance = null;
 }
Exemplo n.º 4
0
 public Runtime()
 {
     RuntimeHandler.Register(this);
 }