Multiplayer.AutoPackets.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <PacketGroup Name="MultiplayerPackets" PacketStart="CorePackets::PacketType::MAX">
  3. <Include File="AzNetworking/AutoGen/CorePackets.AutoPackets.h" />
  4. <Include File="Multiplayer/MultiplayerTypes.h" />
  5. <Include File="Multiplayer/NetworkTime/INetworkTime.h" />
  6. <Include File="Multiplayer/NetworkEntity/NetworkEntityRpcMessage.h" />
  7. <Include File="Multiplayer/NetworkEntity/NetworkEntityUpdateMessage.h" />
  8. <Packet Name="Connect" HandshakePacket="true" Desc="Client connection packet, on success the server will reply with an Accept">
  9. <Member Type="uint16_t" Name="networkProtocolVersion" Init="0" />
  10. <Member Type="uint64_t" Name="temporaryUserId" Init="0" />
  11. <Member Type="Multiplayer::LongNetworkString" Name="ticket" />
  12. <Member Type="AZ::HashValue64" Name="systemVersionHash" />
  13. </Packet>
  14. <Packet Name="Accept" HandshakePacket="true" Desc="Server accept packet">
  15. <Member Type="Multiplayer::LongNetworkString" Name="map" />
  16. </Packet>
  17. <Packet Name="VersionMismatch" HandshakePacket="true" Desc="Tells the receiver (client or server) that there is a component mismatch and sends a map of all the multiplayer components' name and version hashes in order to compare which particular components are mismatched. Note: Marked as a handshake packet so it can be sent back to the client without having received the server acceptance packet.">
  18. <Member Type="Multiplayer::ComponentVersionMap" Name="componentVersions"/>
  19. </Packet>
  20. <Packet Name="ReadyForEntityUpdates" Desc="Client confirming it is ready to receive entity updates">
  21. <Member Type="bool" Name="readyForEntityUpdates" />
  22. </Packet>
  23. <Packet Name="SyncConsole" Desc="Packet for synchronizing cvars between hosts">
  24. <Member Type="Multiplayer::LongNetworkString" Name="commandSet" Container="Vector" Count="32" />
  25. </Packet>
  26. <Packet Name="ConsoleCommand" Desc="Packet for executing a server command from the client">
  27. <Member Type="Multiplayer::LongNetworkString" Name="command" />
  28. </Packet>
  29. <Packet Name="EntityUpdates" Desc="A packet that contains multiple entity updates">
  30. <Member Type="AZ::TimeMs" Name="hostTimeMs" Init="AZ::TimeMs{ 0 }" />
  31. <Member Type="Multiplayer::HostFrameId" Name="hostFrameId" Init="Multiplayer::InvalidHostFrameId" />
  32. <Member Type="Multiplayer::NetworkEntityUpdateVector" Name="entityMessages" />
  33. </Packet>
  34. <Packet Name="EntityRpcs" Desc="A packet that contains multiple entity rpcs">
  35. <Member Type="Multiplayer::NetworkEntityRpcVector" Name="entityRpcs" />
  36. </Packet>
  37. <Packet Name="RequestReplicatorReset" Desc="Asks the remote host to reset any entity replicators matching the provided ids">
  38. <Member Type="Multiplayer::NetEntityIdsForReset" Name="entityIds" />
  39. </Packet>
  40. <Packet Name="ClientMigration" Desc="Tell a client to migrate to a new server">
  41. <Member Type="AzNetworking::IpAddress" Name="remoteServerAddress" Init="AzNetworking::IpAddress()" />
  42. <Member Type="uint64_t" Name="temporaryUserIdentifier" Init="0" />
  43. <Member Type="Multiplayer::ClientInputId" Name="lastClientInputId" Init="Multiplayer::ClientInputId{ 0 }" />
  44. </Packet>
  45. </PacketGroup>