summaryrefslogtreecommitdiffstats
path: root/src/Event.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-18 17:13:01 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-18 17:13:01 +0200
commita2fe2786682e626dae25db2d375280c83b615796 (patch)
tree34bc8295ad75b967519959e6300aada5531e2345 /src/Event.hpp
parent2017-08-17 (diff)
downloadAltCraft-a2fe2786682e626dae25db2d375280c83b615796.tar
AltCraft-a2fe2786682e626dae25db2d375280c83b615796.tar.gz
AltCraft-a2fe2786682e626dae25db2d375280c83b615796.tar.bz2
AltCraft-a2fe2786682e626dae25db2d375280c83b615796.tar.lz
AltCraft-a2fe2786682e626dae25db2d375280c83b615796.tar.xz
AltCraft-a2fe2786682e626dae25db2d375280c83b615796.tar.zst
AltCraft-a2fe2786682e626dae25db2d375280c83b615796.zip
Diffstat (limited to 'src/Event.hpp')
-rw-r--r--src/Event.hpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/Event.hpp b/src/Event.hpp
index 23cc58c..5467f85 100644
--- a/src/Event.hpp
+++ b/src/Event.hpp
@@ -40,6 +40,8 @@ enum class EventType {
DeleteSectionRender,
EntityChanged,
NewRenderDataAvailable,
+ BlockChange,
+ RendererWorkerTask,
};
struct EchoData {
@@ -136,7 +138,7 @@ struct CreatedSectionRenderData {
};
struct PlayerPosChangedData {
- Vector newPos;
+ VectorF newPos;
};
struct UpdateSectionsRenderData {
@@ -155,12 +157,22 @@ struct NewRenderDataAvailableData {
};
+struct BlockChangeData {
+ Vector SectionPos;
+};
+
+struct RendererWorkerTaskData {
+ size_t WorkerId;
+ Vector Task;
+};
+
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>;
+ UpdateSectionsRenderData, DeleteSectionRenderData, EntityChangedData,NewRenderDataAvailableData,
+ BlockChangeData, RendererWorkerTaskData>;
struct Event {
EventType type;