mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-14 03:02:22 +01:00
Dude 💀
This commit is contained in:
35
Project Reboot 3.0/WorldSettings.h
Normal file
35
Project Reboot 3.0/WorldSettings.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#pragma once
|
||||
|
||||
#include "Actor.h"
|
||||
#include "NetConnection.h"
|
||||
#include "Array.h"
|
||||
|
||||
struct FNetViewer
|
||||
{
|
||||
UNetConnection* Connection;
|
||||
AActor* InViewer;
|
||||
AActor* ViewTarget;
|
||||
FVector ViewLocation;
|
||||
FVector ViewDir;
|
||||
|
||||
FNetViewer()
|
||||
: Connection(NULL)
|
||||
, InViewer(NULL)
|
||||
, ViewTarget(NULL)
|
||||
, ViewLocation(ForceInit)
|
||||
, ViewDir(ForceInit)
|
||||
{
|
||||
}
|
||||
|
||||
FNetViewer(UNetConnection* InConnection, float DeltaSeconds);
|
||||
};
|
||||
|
||||
class AWorldSettings : public AActor
|
||||
{
|
||||
public:
|
||||
TArray<struct FNetViewer>& GetReplicationViewers()
|
||||
{
|
||||
static auto ReplicationViewersOffset = GetOffset("ReplicationViewers");
|
||||
return Get<TArray<struct FNetViewer>>(ReplicationViewersOffset);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user