1
0
forked from akanyan/mu3-mods

feat: implement Pause, better InfiniteGP

This commit is contained in:
2024-07-02 10:34:51 +09:00
parent a31cf82029
commit cc6f7657c7
12 changed files with 181 additions and 14 deletions

View File

@ -2,29 +2,28 @@
#pragma warning disable CS0649
#pragma warning disable IDE0051
#pragma warning disable IDE1006
#pragma warning disable CS0108
namespace MU3.User;
public class patch_UserManager: UserManager {
public const int DefaultGP = 666;
public new const int DefaultGP = 666;
private int _gp;
private OnUpdate _onUpdateGP;
private OnReset _onResetGP;
public void resetGP() {
_gp = 666;
public new void resetGP() {
_gp = 999;
if(_onResetGP != null) {
_onResetGP(_gp);
}
}
public int GP {
public new int GP {
get {
return _gp;
}
private set {
_gp = 666;
_gp = 999;
if(_onUpdateGP != null) {
_onUpdateGP(_gp);
}