summaryrefslogtreecommitdiffstats
path: root/src/ClientAction.h
diff options
context:
space:
mode:
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) {}
};