summaryrefslogtreecommitdiff
path: root/tf2/CHLClient.h
blob: 7eadb501cdbde72580337483cfbbac9ac364722d (plain)
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
#pragma once
#include "dt_common.h"
#include "dt_recv.h"
#include "VFunc.h"
#include "ClientClass.h"

enum frame_stages_t {
	FRAME_UNDEFINED = -1,			// (haven't run any frames yet)
	FRAME_START,
	FRAME_NET_UPDATE_START,
	FRAME_NET_UPDATE_POSTDATAUPDATE_START,
	FRAME_NET_UPDATE_POSTDATAUPDATE_END,
	FRAME_NET_UPDATE_END,

	FRAME_RENDER_START,
	FRAME_RENDER_END
};

class chl_client {
public:
	client_class_t* GetAllClasses( ) {
		return call_vfunc< client_class_t*( __thiscall* )( void* ) >( this, 8 )( this );
	}

	void in_activatemouse( ) {
		call_vfunc< void( __thiscall* )( void* ) >( this, 15 )( this );
	}

	void in_deactivatemouse( ) {
		call_vfunc< void( __thiscall* )( void* ) >( this, 16 )( this );
	}
};