1
0
forked from akanyan/mu3-mods
Files
mu3-mods/InfiniteGP/MU3.User/patch_UserManager.cs
2024-07-04 21:39:11 +09:00

27 lines
543 B
C#

namespace MU3.User;
class patch_UserManager: UserManager {
public new const int DefaultGP = 666;
private int _gp;
private OnUpdate _onUpdateGP;
private OnReset _onResetGP;
public new void resetGP() {
_gp = 999;
if(_onResetGP != null) {
_onResetGP(_gp);
}
}
public new int GP {
get {
return _gp;
}
private set {
_gp = 999;
if(_onUpdateGP != null) {
_onUpdateGP(_gp);
}
}
}
}