class CEntitySyncTree { public: uint64_t vtable; //0x0000 class netObject* net_object; //0x0008 class CProjectBaseSyncParentNode* spn_1; //0x0010 class CProjectBaseSyncParentNode* spn_2; //0x0018 char pad_0020[16]; //0x0020 class CVehicleCreationDataNode* pCVehicleCreationDataNode; //0x0030 class pCVehicleTypeCreationDataNode* pCVehicleTypeCreationDataNode; //0x0038 class CGlobalFlagsDataNode* pCGlobalFlagsDataNode; //0x0040 class CDynamicEntityGameStateDataNode* pCDynamicEntityGameStateDataNode; //0x0048 class CPhysicalGameStateDataNode* pCPhysicalGameStateDataNode; //0x0050 class CVehicleGameStateDataNode* CVehicleGameStateDataNode; //0x0058 class CEntityScriptGameStateDataNode* pCEntityScriptGameStateDataNode; //0x0060 class CPhysicalScriptGameStateDataNode* pCPhysicalScriptGameStateDataNode; //0x0068 class CVehicleScriptGameStateDataNode* pCVehicleScriptGameStateDataNode; //0x0070 class CEntityScriptInfoDataNode* pCEntityScriptInfoDataNode; //0x0078 class CPhysicalAttachDataNode* pCPhysicalAttachDataNode; //0x0080 class CVehicleAppearanceDataNode* pCVehicleAppearanceDataNode; //0x0088 class CVehicleDamageStatusDataNode* pCVehicleDamageStatusDataNode; //0x0090 class CVehicleComponentReservationDataNode* pCVehicleComponentReservationDataNode; //0x0098 class CVehicleHealthDataNode* pCVehicleHealthDataNode; //0x00A0 char pad_00A8[88]; //0x00A8 class CMigrationDataNode* pCMigrationDataNode; //0x0100 class CPhysicalMigrationDataNode* pCPhysicalMigrationDataNode; //0x0108 class CPhysicalScriptMigrationDataNode* pCPhysicalScriptMigrationDataNode; //0x0110 class CVehicleProximityMigrationDataNode* pCVehicleProximityMigrationDataNode; //0x0118 char pad_0120[3336]; //0x0120 int64_t invalid_pointer; //0x0E28 char pad_0E30[32]; //0x0E30 int32_t sub_type; //0x0E50 char pad_0E54[12]; //0x0E54 uint32_t sub_38; //0x0E60 char pad_0E64[532]; //0x0E64 }; //Size: 0x1078 static_assert(sizeof(CEntitySyncTree) == 0x1078); class CVehicleCreationDataNode { public: class netSyncNodeBase* node; //0x0000 class CVehicleTypeCreationDataNode* pCVehicleTypeCreationDataNode; //0x0008 heli as car/bike char pad_0010[8]; //0x0010 class CEntitySyncTree* pCEntitySyncTree; //0x0018 class CProjectBaseSyncParentNode* pCProjectBaseSyncParentNode; //0x0020 int32_t m_typ; //0x0028 char pad_002C[12]; //0x002C uint32_t _0x38; //0x0038 uint32_t _0x3C; //0x003C uint32_t _0x40; //0x0040 char pad_0044[156]; //0x0044 class CVehicleProximityMIgrationDataNode* vpmdn; //0x00E0 char pad_00E8[8]; //0x00E8 class CPhysicalScriptMigrationDataNode* pCPhysicalScriptMigrationDataNode; //0x00F0 class CVehicleSyncTree* pCVehicleSyncTree; //0x00F8 class CProjectBaseSyncParentNode* pCProjectBaseSyncParentNode2; //0x0100 int32_t mb_valid_type; //0x0108 char pad_010C[12]; //0x010C uint32_t sm_38; //0x0118 int32_t sm_3c; //0x011C char pad_0120[48]; //0x0120 }; //Size: 0x0150 static_assert(sizeof(CVehicleCreationDataNode) == 0x150); class CVehicleTypeCreationDataNode { public: class netSyncNodeBase* node; //0x0000 char pad_0008[128]; //0x0008 }; //Size: 0x0088 static_assert(sizeof(CVehicleTypeCreationDataNode) == 0x88); class CPhysicalScriptMigrationDataNode { public: char pad_0000[40]; //0x0000 int32_t maybe_valid_type; //0x0028 char pad_002C[92]; //0x002C }; //Size: 0x0088 static_assert(sizeof(CPhysicalScriptMigrationDataNode) == 0x88); class pCVehicleTypeCreationDataNode // get_type_name? { public: char pad_0000[40]; //0x0000 int32_t typ; //0x0028 char pad_002C[12]; //0x002C uint32_t _0x38; //0x0038 int32_t _0x3c; //0x003C char pad_0040[78]; //0x0040 }; //Size: 0x008E class CMigrationDataNode { public: char pad_0000[40]; //0x0000 int32_t entity_type; //0x0028 char pad_002C[12]; //0x002C uint32_t _0x38; //0x0038 int32_t _0x3c; //0x003C char pad_0040[78]; //0x0040 }; //Size: 0x008E
Write, Run & Share C++ code online using OneCompiler's C++ online compiler for free. It's one of the robust, feature-rich online compilers for C++ language, running on the latest version 17. Getting started with the OneCompiler's C++ compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as C++
and start coding!
OneCompiler's C++ online compiler supports stdin and users can give inputs to programs using the STDIN textbox under the I/O tab. Following is a sample program which takes name as input and print your name with hello.
#include <iostream>
#include <string>
using namespace std;
int main()
{
string name;
cout << "Enter name:";
getline (cin, name);
cout << "Hello " << name;
return 0;
}
C++ is a widely used middle-level programming language.
When ever you want to perform a set of operations based on a condition If-Else is used.
if(conditional-expression) {
//code
}
else {
//code
}
You can also use if-else for nested Ifs and If-Else-If ladder when multiple conditions are to be performed on a single variable.
Switch is an alternative to If-Else-If ladder.
switch(conditional-expression){
case value1:
// code
break; // optional
case value2:
// code
break; // optional
......
default:
code to be executed when all the above cases are not matched;
}
For loop is used to iterate a set of statements based on a condition.
for(Initialization; Condition; Increment/decrement){
//code
}
While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.
while (condition) {
// code
}
Do-while is also used to iterate a set of statements based on a condition. It is mostly used when you need to execute the statements atleast once.
do {
// code
} while (condition);
Function is a sub-routine which contains set of statements. Usually functions are written when multiple calls are required to same set of statements which increases re-usuability and modularity. Function gets run only when it is called.
return_type function_name(parameters);
function_name (parameters)
return_type function_name(parameters) {
// code
}