-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.cs
More file actions
50 lines (43 loc) · 1.58 KB
/
Main.cs
File metadata and controls
50 lines (43 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using Il2CppHorizonBasedAmbientOcclusion.Universal;
using Il2CppSLZ.Bonelab.SaveData;
using WeatherElectric.LabCam.Melon;
using WeatherElectric.LabCam.Resources;
namespace WeatherElectric.LabCam;
public class Main : MelonMod
{
internal const string Name = "LabCam";
internal const string Description = "Take pictures with a physical camera that save to a file!";
internal const string Author = "Mabel Amber";
internal const string Company = "Weather Electric";
internal const string Version = "1.1.0";
internal const string DownloadLink = "https://bonelab.thunderstore.io/package/SoulWithMae/LabCam/";
internal static Assembly CurrAsm => Assembly.GetExecutingAssembly();
internal static string CurrentMap;
internal static bool FusionInstalled;
internal static readonly List<HBAO> Hbao = [];
public override void OnInitializeMelon()
{
ModConsole.Setup(LoggerInstance);
Preferences.Setup();
Menu.BoneMenu.Setup();
UserData.Setup();
Assets.Load();
Hooking.OnLevelLoaded += OnLevelLoad;
#if DEBUG
ModConsole.Msg("This is a debug build! Possibly unstable!");
#endif
}
public override void OnLateInitializeMelon()
{
FusionInstalled = HelperMethods.CheckIfAssemblyLoaded("LabFusion");
}
private static void OnLevelLoad(LevelInfo levelInfo)
{
CurrentMap = levelInfo.title.Replace(" ", "");
Hbao.AddRange(Object.FindObjectsOfType<HBAO>());
foreach (var hbao in Hbao)
{
ModConsole.Msg($"HBAO: {hbao.name}", 1);
}
}
}