-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPlugin.cs
More file actions
41 lines (35 loc) · 1.85 KB
/
Copy pathPlugin.cs
File metadata and controls
41 lines (35 loc) · 1.85 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
using BepInEx;
using HarmonyLib;
using System.Reflection;
using System.Linq;
using FirstPersonCamera.Patches;
#if BEPINEX_V6
using BepInEx.Unity.Mono;
#endif
namespace FirstPersonCamera
{
[BepInPlugin( MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION )]
public class Plugin : BaseUnityPlugin
{
private void Awake( )
{
var harmony = Harmony.CreateAndPatchAll( Assembly.GetExecutingAssembly( ), MyPluginInfo.PLUGIN_GUID + "_Cities2Harmony" );
var patchedMethods = harmony.GetPatchedMethods( ).ToArray( );
Logger.LogInfo( "=================================================================" );
Logger.LogInfo( MyPluginInfo.PLUGIN_NAME + " by Cities2Modding community." );
Logger.LogInfo( "=================================================================" );
Logger.LogInfo( "Reddit link: https://www.reddit.com/r/cities2modding/" );
Logger.LogInfo( "Discord link: https://discord.gg/KGRNBbm5Fh" );
Logger.LogInfo( "Our mods are officially distributed via Thunderstore.io and https://github.com/Cities2Modding" );
Logger.LogInfo( "Example mod repository and modding info: https://github.com/optimus-code/Cities2Modding" );
Logger.LogInfo( "Thanks to Captain_Of_Coit, 89pleasure, Rebecca, optimus-code and the Cites2Modding community!" );
Logger.LogInfo( "=================================================================" );
// Plugin startup logic
Logger.LogInfo( $"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded! Patched methods: " + patchedMethods.Length );
foreach ( var patchedMethod in patchedMethods )
{
Logger.LogInfo( $"Patched method: {patchedMethod.Module.Name}:{patchedMethod.Name}" );
}
}
}
}