summaryrefslogtreecommitdiffstats
path: root/src/ClientAction.h
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-09-25 16:49:22 +0200
committertycho <work.tycho@gmail.com>2015-12-18 19:14:34 +0100
commit26caea80d35d4ff2ac3879d5ae6ab49f2f876385 (patch)
treedbbeff77f1653217bab4f06ae3f2763bef0bd21b /src/ClientAction.h
parentRefactored some protocol logging (diff)
downloadcuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar
cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar.gz
cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar.bz2
cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar.lz
cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar.xz
cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar.zst
cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.zip
Diffstat (limited to 'src/ClientAction.h')
-rw-r--r--src/ClientAction.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/ClientAction.h b/src/ClientAction.h
index 444cf7f3d..d07d9a07b 100644
--- a/src/ClientAction.h
+++ b/src/ClientAction.h
@@ -1,4 +1,37 @@
+#pragma once
+
class cClientAction
{
+public:
+ enum class Type
+ {
+ StatusRequest,
+ StatusPing,
+ LoginStart,
+ LoginConfirmation,
+ Animation,
+ LeftClick,
+ RightClick,
+ Chat,
+ SetLocale,
+ SetViewDistance,
+ Respawn,
+ StatsRequest,
+ Achivement,
+ CreativeInventory
+ };
+
+ 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) {}
};