~ruther/NosSmooth

ref: 45f8bc92fd853ae7008cf52c153aa71368f11f32 NosSmooth/Local/NosSmooth.LocalCore/NosSmoothCore.cpp -rw-r--r-- 587 bytes
45f8bc92 — František Boháček feat: use nostale bindings instead of nossmooth core 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "NosSmoothCore.h"
using namespace NosSmoothCore;

NosClient::NosClient()
{
	ModuleHook _moduleHook = ModuleHook::CreateNostaleXDatModule();
	_character = gcnew Character(_moduleHook);
	_network = gcnew Network(_moduleHook);
}

NosClient::~NosClient()
{
	delete _network;
	delete _character;

	_network = nullptr;
	_character = nullptr;
}

Character^ NosClient::GetCharacter()
{
	return _character;
}

Network^ NosClient::GetNetwork()
{
	return _network;
}

void NosClient::ResetHooks() 
{
	_network->ResetHooks();
	_character->ResetHooks();
}
Do not follow this link