diff --git a/classes.cpp b/classes.cpp index 5e2488e..36f0f97 100644 --- a/classes.cpp +++ b/classes.cpp @@ -3,6 +3,23 @@ #include "base/fwRefAwareBase.hpp" #include "base/fwRefAwareBaseImpl.hpp" #include "entity/fwEntity.hpp" +#include "network/CNetGamePlayer.hpp" +#include "network/CNetworkPlayerMgr.hpp" +#include "network/CScriptedGameEvent.hpp" +#include "network/netGameEvent.hpp" +#include "network/netObject.hpp" +#include "network/netPeerAddress.hpp" +#include "network/netPlayer.hpp" +#include "network/netPlayerMgrBase.hpp" +#include "network/netServerMessages.hpp" +#include "network/rlGamerHandle.hpp" +#include "network/rlGamerInfo.hpp" +#include "network/rlGamerInfoBase.hpp" +#include "network/sync/CProjectBaseSyncDataNode.hpp" +#include "network/sync/NodeCommonDataOperations.hpp" +#include "network/sync/netSyncDataNode.hpp" +#include "network/sync/netSyncNodeBase.hpp" +#include "network/sync/netSyncTree.hpp" #include "network/sync/object/CObjectCreationData.hpp" #include "network/sync/ped/CPedAttachData.hpp" #include "network/sync/ped/CPedCreationData.hpp" @@ -12,26 +29,11 @@ #include "network/sync/player/CPlayerAppearanceData.hpp" #include "network/sync/player/CPlayerHealthData.hpp" #include "network/sync/vehicle/CVehicleCreationData.hpp" -#include "network/sync/vehicle/CVehicleProximityMigrationData.hpp" #include "network/sync/vehicle/CVehicleGadgetData.hpp" -#include "network/sync/CProjectBaseSyncDataNode.hpp" -#include "network/sync/netSyncDataNode.hpp" -#include "network/sync/netSyncNodeBase.hpp" -#include "network/sync/netSyncTree.hpp" -#include "network/sync/NodeCommonDataOperations.hpp" -#include "network/CNetGamePlayer.hpp" -#include "network/CNetworkPlayerMgr.hpp" -#include "network/CScriptedGameEvent.hpp" -#include "network/netGameEvent.hpp" -#include "network/netObject.hpp" -#include "network/netPeerAddress.hpp" -#include "network/netPlayer.hpp" -#include "network/netPlayerMgrBase.hpp" -#include "network/rlGamerHandle.hpp" -#include "network/rlGamerInfoBase.hpp" -#include "network/rlGamerInfo.hpp" -#include "player/CPlayerInfo.hpp" +#include "network/sync/vehicle/CVehicleProximityMigrationData.hpp" #include "ped/CPed.hpp" +#include "player/CPlayerInfo.hpp" +#include "rage/Guid.hpp" #include "rage/atArray.hpp" #include "rage/atPlayerBits.hpp" #include "rage/datBitBuffer.hpp" @@ -42,12 +44,11 @@ #include "rage/rlMetric.hpp" #include "rage/tlsContext.hpp" #include "rage/vector.hpp" -#include "script/scriptHandlerNetComponent.hpp" -#include "script/scriptId.hpp" -#include "script/scriptIdBase.hpp" #include "script/scrNativeHandler.hpp" #include "script/scrThread.hpp" #include "script/scrThreadContext.hpp" #include "script/scrVector.hpp" +#include "script/scriptHandlerNetComponent.hpp" +#include "script/scriptId.hpp" +#include "script/scriptIdBase.hpp" #include "script/types.hpp" -#include "rage/Guid.hpp" diff --git a/network/netServerMessages.hpp b/network/netServerMessages.hpp new file mode 100644 index 0000000..c0d0930 --- /dev/null +++ b/network/netServerMessages.hpp @@ -0,0 +1,39 @@ +#pragma once +#include + +namespace rage { +class ServerRPCSerializer { +public: + virtual int dtor() = 0; + virtual int Unk() = 0; + virtual void *GetData() = 0; + virtual int GetSize() = 0; +}; + +class ServerMsgData { +public: + unsigned char *data; + int size; + bool is_json; +}; + +class ServerMsg { +public: + virtual ~ServerMsg() = default; + virtual void _0x08() = 0; + virtual void _0x10() = 0; + virtual void _0x18() = 0; + virtual void _0x20() = 0; + virtual void _0x28() = 0; + virtual void _0x30() = 0; + virtual const char *GetName() = 0; + virtual void _0x40() = 0; + virtual void _0x48() = 0; + virtual void _0x50() = 0; + virtual void _0x58() = 0; + virtual void _0x60() = 0; + virtual void _0x68() = 0; + virtual void _0x70() = 0; + virtual ServerMsgData *GetMsgData() = 0; +}; +} // namespace rage \ No newline at end of file