summaryrefslogtreecommitdiffstats
path: root/src/Event.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-23 17:23:22 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-23 17:23:22 +0200
commitbdf73a67ffd964c37db5a9694424380bfd685c95 (patch)
tree3d313b318623eb7e7c46aed80c10e7fe896a5587 /src/Event.hpp
parent2017-08-20 (diff)
downloadAltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar
AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.gz
AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.bz2
AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.lz
AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.xz
AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.zst
AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.zip
Diffstat (limited to '')
-rw-r--r--src/Event.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Event.hpp b/src/Event.hpp
index e7ebe66..b137a85 100644
--- a/src/Event.hpp
+++ b/src/Event.hpp
@@ -42,6 +42,7 @@ enum class EventType {
NewRenderDataAvailable,
BlockChange,
RendererWorkerTask,
+ ChunkDeleted,
};
struct EchoData {
@@ -166,13 +167,17 @@ struct RendererWorkerTaskData {
Vector Task;
};
+struct ChunkDeletedData {
+ Vector pos;
+};
+
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>;
+ BlockChangeData, RendererWorkerTaskData, ChunkDeletedData>;
struct Event {
EventType type;