mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
i broke the whole project but its fine
complete pickup rewrite, idle pawns
This commit is contained in:
@@ -18,5 +18,27 @@ struct FUniqueNetIdRepl // : public FUniqueNetIdWrapper
|
||||
return Size;
|
||||
}
|
||||
|
||||
TArray<uint8>& GetReplicationBytes()
|
||||
{
|
||||
static auto ReplicationBytesOffset = FindOffsetStruct("/Script/Engine.UniqueNetIdRepl", "ReplicationBytes");
|
||||
return *(TArray<uint8>*)(__int64(this) + ReplicationBytesOffset);
|
||||
}
|
||||
|
||||
void CopyFromAnotherUniqueId(FUniqueNetIdRepl* OtherUniqueId)
|
||||
{
|
||||
CopyStruct(this, OtherUniqueId, GetSizeOfStruct(), GetStruct());
|
||||
|
||||
auto& ReplicationBytes = GetReplicationBytes();
|
||||
|
||||
ReplicationBytes.Free();
|
||||
|
||||
// Now this is what we call 1 to 1 array copying.
|
||||
|
||||
for (int i = 0; i < OtherUniqueId->GetReplicationBytes().Num(); i++)
|
||||
{
|
||||
ReplicationBytes.Add(OtherUniqueId->GetReplicationBytes().at(i));
|
||||
}
|
||||
}
|
||||
|
||||
/* bool IsEqual(FUniqueNetIdRepl* Other) */
|
||||
};
|
||||
Reference in New Issue
Block a user