Add project files.
This commit is contained in:
37
L2BotDll/Versions/Interlude/GameStructs/GameEngineWrapper.h
Normal file
37
L2BotDll/Versions/Interlude/GameStructs/GameEngineWrapper.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#pragma once
|
||||
|
||||
#include <math.h>
|
||||
#include <cstdint>
|
||||
#include "../../GameStructs/GameEngineInterface.h"
|
||||
#include "GameStructs.h"
|
||||
#include "L2ParamStack.h"
|
||||
|
||||
namespace Interlude
|
||||
{
|
||||
class GameEngineWrapper : public GameEngineInterface
|
||||
{
|
||||
public:
|
||||
class GameEngine {};
|
||||
GameEngineWrapper() = default;
|
||||
virtual ~GameEngineWrapper() = default;
|
||||
|
||||
void Init(HMODULE hModule) override;
|
||||
void Restore() override;
|
||||
|
||||
private:
|
||||
static void(__thiscall* __Init)(GameEngine*, float_t);
|
||||
static void(__thiscall* __OnSkillListPacket)(GameEngine*, L2ParamStack& stack);
|
||||
static int(__thiscall* __OnReceiveMagicSkillUse)(GameEngine*, User*, User*, L2ParamStack&);
|
||||
static void(__thiscall* __OnReceiveMagicSkillCanceled)(GameEngine*, User*);
|
||||
static void(__thiscall* __AddAbnormalStatus)(GameEngine*, L2ParamStack&);
|
||||
|
||||
static void __fastcall __Init_hook(GameEngine* This, uint32_t /*edx*/, float_t unk);
|
||||
static void __fastcall __OnSkillListPacket_hook(GameEngine* This, uint32_t /*edx*/, L2ParamStack& stack);
|
||||
static int __fastcall __OnReceiveMagicSkillUse_hook(GameEngine* This, uint32_t /*edx*/, User* u1, User* u2, L2ParamStack& stack);
|
||||
static void __fastcall __OnReceiveMagicSkillCanceled_hook(GameEngine* This, uint32_t /*edx*/, User* user);
|
||||
static void __fastcall __AddAbnormalStatus_hook(GameEngine* This, uint32_t /*edx*/, L2ParamStack& stack);
|
||||
private:
|
||||
static void* originalInitAddress;
|
||||
static GameEngine* _target;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user