2015-12-23 08:45:53 -05:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class QuickPatch : public Component
|
|
|
|
{
|
|
|
|
public:
|
2016-02-11 05:26:41 -05:00
|
|
|
typedef void(Callback)();
|
2016-01-28 15:37:48 -05:00
|
|
|
|
2015-12-23 08:45:53 -05:00
|
|
|
QuickPatch();
|
2016-01-28 15:37:48 -05:00
|
|
|
~QuickPatch();
|
2015-12-23 08:45:53 -05:00
|
|
|
const char* GetName() { return "QuickPatch"; };
|
2015-12-25 15:42:35 -05:00
|
|
|
|
2016-01-04 09:43:09 -05:00
|
|
|
static void UnlockStats();
|
2016-02-11 05:26:41 -05:00
|
|
|
static void OnShutdown(Callback* callback);
|
2016-01-04 09:43:09 -05:00
|
|
|
|
2015-12-25 15:42:35 -05:00
|
|
|
private:
|
2016-02-11 05:26:41 -05:00
|
|
|
static wink::signal<wink::slot<Callback>> ShutdownSignal;
|
2016-01-28 15:37:48 -05:00
|
|
|
|
|
|
|
static int64_t* GetStatsID();
|
|
|
|
static void ShutdownStub(int channel, const char* message);
|
2015-12-23 08:45:53 -05:00
|
|
|
};
|
|
|
|
}
|