26 lines
745 B
C#
Raw Normal View History

using System;
2025-01-14 15:34:06 +01:00
using static WindowsPhoneSpeedyBlupi.EnvClasses;
namespace WindowsPhoneSpeedyBlupi
{
public static class Env
{
public static bool DETAILED_DEBUGGING { get; set; }
public static Platform PLATFORM { get; private set; }
2025-01-14 15:34:06 +01:00
public static Impl IMPL { get; private set; }
public static bool INITIALIZED { get; private set; }
2025-01-14 15:34:06 +01:00
public static void init(Impl impl, Platform platformIn)
{
if(INITIALIZED)
{
throw new Exception("Env was already initialized. Cannot call the init method again.");
}
2025-01-14 15:34:06 +01:00
IMPL = impl;
PLATFORM = platformIn;
INITIALIZED = true;
}
}
}