diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-16 17:11:07 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-16 17:11:07 +0200 |
commit | dee50239be8fff566b3ca687bc70900b391a8164 (patch) | |
tree | 6ff6ae2e8e2ea5109d031be8c588f4b8f38f68eb /src/Event.hpp | |
parent | 2017-08-12 (diff) | |
download | AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.gz AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.bz2 AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.lz AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.xz AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.zst AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Event.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Event.hpp b/src/Event.hpp index 232e6f2..f07ed57 100644 --- a/src/Event.hpp +++ b/src/Event.hpp @@ -13,7 +13,6 @@ #include "Vector.hpp" #include "Packet.hpp" -#include "FSM.hpp" enum class EventType { Echo, @@ -39,6 +38,7 @@ enum class EventType { CreatedSectionRender, PlayerPosChanged, DeleteSectionRender, + EntityChanged, }; struct EchoData { @@ -146,12 +146,16 @@ struct DeleteSectionRenderData { Vector pos; }; +struct EntityChangedData { + unsigned int EntityId; +}; + 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>; + UpdateSectionsRenderData, DeleteSectionRenderData, EntityChangedData>; struct Event { EventType type; |