mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-06 12:03:39 +00:00
19 lines
679 B
C++
19 lines
679 B
C++
#pragma once
|
|
#include "APIHelp.h"
|
|
|
|
#include <EconomicSystem.h>
|
|
|
|
//////////////////// Funcs ////////////////////
|
|
|
|
void InitBasicEventListeners();
|
|
void EnableEventListener(int eventId);
|
|
|
|
bool LLSEAddEventListener(ScriptEngine* engine, const std::string& eventName, const Local<Function>& func);
|
|
bool LLSERemoveAllEventListeners(ScriptEngine* engine);
|
|
bool LLSECallEventsOnHotLoad(ScriptEngine* engine);
|
|
bool LLSECallEventsOnHotUnload(ScriptEngine* engine);
|
|
|
|
//////////////////// Callback ////////////////////
|
|
|
|
bool MoneyBeforeEventCallback(LLMoneyEvent type, xuid_t from, xuid_t to, money_t value);
|
|
bool MoneyEventCallback(LLMoneyEvent type, xuid_t from, xuid_t to, money_t value); |