-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathAgentTrainer.cs
34 lines (28 loc) · 957 Bytes
/
AgentTrainer.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
using BepInEx.Configuration;
using UnityEngine;
using BepInEx;
using KeyboardShortcut = BepInEx.Configuration.KeyboardShortcut;
using KKAPI.Chara;
using BepInEx.Harmony;
namespace AgentTrainer
{
[BepInPlugin(GUID, Name, Version)]
[BepInProcess("AI-Syoujyo")]
public partial class AgentTrainer : BaseUnityPlugin
{
const string GUID = "com.fairbair.agenttrainer";
const string Name = "Agent Trainer";
const string Version = "1.2.0";
const string BEHAVIOR = "AgentTrainer.StatsController";
const string SECTION_GENERAL = "General";
static ConfigEntry<int> WindowID { get; set; }
static ConfigEntry<KeyboardShortcut> Key { get; set; }
void Awake()
{
WindowID = Config.Bind(SECTION_GENERAL, "__Window ID", 23967);
Key = Config.Bind(SECTION_GENERAL, "Key", new KeyboardShortcut(KeyCode.KeypadEnter));
CharacterApi.RegisterExtraBehaviour<StatsController>(BEHAVIOR);
HarmonyWrapper.PatchAll(typeof(AgentTrainer));
}
}
}