mirror of
https://github.com/YimMenu/RDR-Classes.git
synced 2024-12-23 06:57:33 +08:00
0132075d1c
* feat(metric): add rlMetric * fix(metric): serializer fix * feat(tls): add tlsContext * feat(fwEntity): add entity classes * fix: add import * fix(vector): constexpr ctors * feat(ped): add CPed * feat(sync): add sync nodes * feat(netsync): add netSyncDataNode::IsActive * feat(netsync): first node * fix: make GetData accessible * fix: make netSyncDataNode an abstract class * fix(netsync): the compiler is too smart for its own good * feat(netsync): add CObjectCreationData * feat(netsync): add CPlayerAppearanceData * feat(netsync): CVehicleCreationData * feat(netsync): add CPickupCreationData * feat(netsync): add CPhysicalAttachData * feat(netsync): add CVehicleProximityMigrationData * feat(netsync): add CPedTaskTreeData * feat(network): add CScriptedGameEvent ---------
22 lines
1.0 KiB
C++
22 lines
1.0 KiB
C++
#pragma once
|
|
|
|
namespace rage
|
|
{
|
|
class datBitBuffer;
|
|
}
|
|
|
|
class NodeCommonDataOperations
|
|
{
|
|
public:
|
|
virtual ~NodeCommonDataOperations() = default;
|
|
virtual void ReadFromBuffer(rage::datBitBuffer* buffer, void* log) {}; // 0x08
|
|
virtual void WriteToBuffer(void* data_base, rage::datBitBuffer* buffer, void* log, bool cache) {}; // 0x10
|
|
virtual void Unk() {}; // 0x18
|
|
// TODO:
|
|
virtual int CalculateSize(rage::datBitBuffer* buffer) { return 0; }; // 0x20
|
|
virtual int CalculateSize2(rage::datBitBuffer* buffer) { return 0; }; // 0x28
|
|
virtual void LogSyncData(rage::datBitBuffer* buffer) {}; // 0x30
|
|
virtual void LogSyncData2(rage::datBitBuffer* buffer) {}; // 0x38
|
|
rage::datBitBuffer* m_Buffer; // 0x8
|
|
};
|
|
static_assert(sizeof(NodeCommonDataOperations) == 0x10); |