RDR-Classes/script/scriptId.hpp
maybegreat48 0132075d1c
Netsync stuff (#5)
* 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

---------
2023-10-09 15:01:36 +02:00

31 lines
766 B
C++

#pragma once
#include "scriptIdBase.hpp"
#pragma pack(push, 8)
namespace rage
{
class scriptId : public scriptIdBase
{
public:
joaat_t m_ScriptHash; // 0x08
};
static_assert(sizeof(scriptId) == 0x10);
}
class CGameScriptId : public rage::scriptId
{
public:
int m_Timestamp; // 0x10 (verify)
int m_ObjectBrainPositionHash; // 0x14
union
{
int m_PedBrainObjectId; // 0x18
int m_WorldPointBrainIndex; // 0x18
int m_FallbackId; // 0x18
};
int m_InstanceHash; // 0x1C (derived from brain parameters)
bool m_IsPedBrainScript; // 0x20
};
static_assert(sizeof(CGameScriptId) == 0x28);
#pragma pack(pop)