mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
20 lines
435 B
C++
20 lines
435 B
C++
#pragma once
|
|
|
|
#include "Object.h"
|
|
#include "PlayerController.h"
|
|
|
|
class UPlayer : public UObject
|
|
{
|
|
public:
|
|
APlayerController*& GetPlayerController() const
|
|
{
|
|
static auto PlayerControllerOffset = GetOffset("PlayerController");
|
|
return Get<APlayerController*>(PlayerControllerOffset);
|
|
}
|
|
|
|
int& GetCurrentNetSpeed()
|
|
{
|
|
static auto CurrentNetSpeedOffset = GetOffset("CurrentNetSpeed");
|
|
return Get<int>(CurrentNetSpeedOffset);
|
|
}
|
|
}; |