mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-14 03:02:22 +01:00
it kinda work
This commit is contained in:
@@ -2,11 +2,25 @@
|
||||
|
||||
#include "Object.h"
|
||||
|
||||
enum class ENetDormancy : uint8_t
|
||||
{
|
||||
DORM_Never = 0,
|
||||
DORM_Awake = 1,
|
||||
DORM_DormantAll = 2,
|
||||
DORM_DormantPartial = 3,
|
||||
DORM_Initial = 4,
|
||||
DORN_MAX = 5,
|
||||
ENetDormancy_MAX = 6
|
||||
};
|
||||
|
||||
class AActor : public UObject
|
||||
{
|
||||
public:
|
||||
struct FTransform GetTransform();
|
||||
|
||||
bool IsTearOff();
|
||||
/* FORCEINLINE */ ENetDormancy& GetNetDormancy();
|
||||
int32& GetNetTag();
|
||||
AActor* GetOwner();
|
||||
struct FVector GetActorLocation();
|
||||
struct FVector GetActorRightVector();
|
||||
@@ -29,6 +43,13 @@ public:
|
||||
bool IsPendingKillPending();
|
||||
float& GetNetUpdateFrequency();
|
||||
float& GetMinNetUpdateFrequency();
|
||||
const AActor* GetNetOwner() const;
|
||||
|
||||
bool IsRelevancyOwnerFor(const AActor* ReplicatedActor, const AActor* ActorOwner, const AActor* ConnectionActor) const
|
||||
{
|
||||
// we should call virtual function but eh
|
||||
return (ActorOwner == this);
|
||||
}
|
||||
|
||||
static class UClass* StaticClass();
|
||||
};
|
||||
Reference in New Issue
Block a user