-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPolyTechMod.cs
54 lines (47 loc) · 2.19 KB
/
PolyTechMod.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
47
48
49
50
51
52
53
54
using BepInEx;
using System;
using System.Collections.Generic;
using System.Text;
namespace PolyTechFramework
{
public abstract class PolyTechMod : BaseUnityPlugin
{
public static string PluginGuid;
public static string PluginName;
public static string PluginVersion;
public virtual void enableMod()
{
Logger.LogError("enableMod() Function Not Implemented, Please Have Mod Author Fix");
if (Profile.m_NeverShowAgain.Contains(PopUpWarningCategory.OLDER_PHYSICS_ENGINE)) return;
PopUpWarning.Display("Something tried to automatically enable a mod, but the mod doesn't support this feature. Try setting them manually.", PopUpWarningCategory.OLDER_PHYSICS_ENGINE);
}
public virtual void disableMod()
{
Logger.LogError("disableMod() Function Not Implemented, Please Have Mod Author Fix");
if (Profile.m_NeverShowAgain.Contains(PopUpWarningCategory.OLDER_PHYSICS_ENGINE)) return;
PopUpWarning.Display("Something tried to automatically disable a mod, but the mod doesn't support this feature. Try setting them manually.", PopUpWarningCategory.OLDER_PHYSICS_ENGINE);
}
public virtual string getSettings()
{
Logger.LogError("getSettings() Function Not Implemented, Please Have Mod Author Fix");
return null;
}
public virtual void setSettings(string settings)
{
Logger.LogError("setSettings() Function Not Implemented, Please Have Mod Author Fix");
if (Profile.m_NeverShowAgain.Contains(PopUpWarningCategory.OLDER_PHYSICS_ENGINE)) return;
PopUpWarning.Display("Something tried to automatically set the settings for a mod, but the mod doesn't support this feature. Try setting them manually.", PopUpWarningCategory.OLDER_PHYSICS_ENGINE);
}
public virtual byte[] saveData(){
return new byte[] {};
}
public virtual void loadData(byte[] bytes){
return;
}
public bool isEnabled;
public bool isCheat;
public string repositoryUrl;
public string[] authors;
public bool shouldSaveData;
}
}