25 lines
709 B
C#
Raw Normal View History

using System;
2025-02-01 14:01:53 +01:00
using System.Diagnostics;
2025-01-14 15:34:06 +01:00
using static WindowsPhoneSpeedyBlupi.EnvClasses;
namespace WindowsPhoneSpeedyBlupi
{
public static class Env
{
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;
}
}
}