refactor of vehicle packet handling

This commit is contained in:
20dka
2022-11-07 22:04:17 +01:00
committed by Lion Kortlepel
parent dee7f74906
commit 9d8aeef423
3 changed files with 103 additions and 84 deletions

View File

@@ -43,8 +43,8 @@ private:
static bool ShouldSpawn(TClient& c, const std::string& CarJson, int ID);
static bool IsUnicycle(TClient& c, const std::string& CarJson);
static void Apply(TClient& c, int VID, const std::string& pckt);
static bool HandlePosition(TClient& c, const std::string& Packet);
static bool HandleVehicleUpdate(TClient& c, const std::string& Packet);
static bool HandlePosition(TClient& c, const std::string& PacketStr);
static bool HandleVehicleUpdate(const std::string& PacketStr, const int playerID);
};
struct BufferView {