-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConstants.cs
46 lines (38 loc) · 1.4 KB
/
Constants.cs
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
using System;
namespace HarmonyInjector
{
/// <summary>
/// Constants used throughout the mod.
/// </summary>
public static class Constants
{
/// <summary>
/// The new version of CoQ comes with a new logging system based on
/// a package called NLog. For whatever reason, it does not appear
/// to work when called from mods, and I can't figure out why.
/// So, if that ever changes, this can be used to switch between
/// the two logging systems.
/// </summary>
public const bool UseNewLogging = false;
public const string ModID = "Harmony Injector";
public const string SharedHarmonyID = "nk.compiled_injector";
public const string HarmonyDll = "0Harmony.dll";
public const string QudExe = "CoQ.exe";
/// <summary>
/// Code to fill in for `XRL.World.Parts.ModInjector` in the
/// Harmony-injected assembly.
/// </summary>
public const string FauxModInjectorCode = @"
using System;
namespace XRL.World.Parts
{
public class ModInjector : XRL.World.IPart
{
public static bool InjectedHarmony => true;
public static bool CurrentlyInjecting => false;
}
}
";
public static readonly Action NoopFn = () => { };
}
}