summaryrefslogtreecommitdiffstats
path: root/src/Event.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-10-15 18:41:20 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 03:39:32 +0100
commit60449b3f092194087b052142be31fc74ccb9577a (patch)
tree5f70e05ebd853c754550af6ec705811ece112634 /src/Event.hpp
parent2017-10-14 (diff)
downloadAltCraft-60449b3f092194087b052142be31fc74ccb9577a.tar
AltCraft-60449b3f092194087b052142be31fc74ccb9577a.tar.gz
AltCraft-60449b3f092194087b052142be31fc74ccb9577a.tar.bz2
AltCraft-60449b3f092194087b052142be31fc74ccb9577a.tar.lz
AltCraft-60449b3f092194087b052142be31fc74ccb9577a.tar.xz
AltCraft-60449b3f092194087b052142be31fc74ccb9577a.tar.zst
AltCraft-60449b3f092194087b052142be31fc74ccb9577a.zip
Diffstat (limited to '')
-rw-r--r--src/Event.hpp19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/Event.hpp b/src/Event.hpp
index d2ddb15..021af0d 100644
--- a/src/Event.hpp
+++ b/src/Event.hpp
@@ -45,6 +45,7 @@ enum class EventType {
ChunkDeleted,
ChatMessageReceived,
SendChatMessage,
+ StateUpdated,
};
struct EchoData {
@@ -176,14 +177,18 @@ struct SendChatMessageData {
std::string message;
};
+struct StateUpdatedData {
+
+};
+
using EventData = std::variant<EchoData, ChunkChangedData, ConnectToServerData, ConnectionSuccessfullData,
- DisconnectData, SendPacketData, ReceivePacketData, RequestNetworkClientData, RegisterNetworkClientData,
- PlayerConnectedData, RemoveLoadingScreenData, ConnectionFailedData, ExitData, DisconnectedData,
- ConnectingData, NetworkClientExceptionData, MouseMovedData, KeyPressedData, KeyReleasedData,
- InitalizeSectionRenderData, CreateSectionRenderData, CreatedSectionRenderData, PlayerPosChangedData,
- UpdateSectionsRenderData, DeleteSectionRenderData, EntityChangedData,NewRenderDataAvailableData,
- BlockChangeData, RendererWorkerTaskData, ChunkDeletedData, ChatMessageReceivedData,
- SendChatMessageData>;
+ DisconnectData, SendPacketData, ReceivePacketData, RequestNetworkClientData, RegisterNetworkClientData,
+ PlayerConnectedData, RemoveLoadingScreenData, ConnectionFailedData, ExitData, DisconnectedData,
+ ConnectingData, NetworkClientExceptionData, MouseMovedData, KeyPressedData, KeyReleasedData,
+ InitalizeSectionRenderData, CreateSectionRenderData, CreatedSectionRenderData, PlayerPosChangedData,
+ UpdateSectionsRenderData, DeleteSectionRenderData, EntityChangedData, NewRenderDataAvailableData,
+ BlockChangeData, RendererWorkerTaskData, ChunkDeletedData, ChatMessageReceivedData,
+ SendChatMessageData, StateUpdatedData>;
struct Event {
EventType type;