summaryrefslogtreecommitdiffstats
path: root/src/ClientAction.h
blob: 33360aaa23253744fe529937653db97cfeff7613 (plain) (blame)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64

#pragma once

class cClientAction
{
public:
	enum class Type
	{
		StatusRequest,
		StatusPing,
		LoginStart,
		LoginConfirmation,
		Animation,
		LeftClick,
		RightClick,
		Chat,
		SetLocale,
		SetViewDistance,
		Respawn,
		StatsRequest,
		Achivement,
		CreativeInventory,
		SetProtocolVersion,
		KeepAlive,
		UseEntity,
		PlayerPos,
		PlayerLook,
		SlotSelected,
		EntityCrouch,
		EntityLeaveBed,
		EntitySprinting,
		Unmount,
		SteerVehicle,
		WindowClose,
		WindowClick,
		EnchantItem,
		UpdateSign,
		PlayerAbilities,
		TabComplete,
		PluginMessage,
		CommandBlockChange,
		UnhandledCommandBlockCommand,
		SetBrand,
		BeaconSelection,
		AnvilItemName,
		NPCTrade,
		SetIPString,
		SetUUID,
		SetProperties
	};

	cClientAction(Type a_Type) : m_Type(a_Type) {}

	Type GetType() const { return m_Type; }

private:
	Type m_Type;
};

class cSimpleAction : public cClientAction
{
public:
	cSimpleAction(Type a_type) : cClientAction(a_type) {}
};