Files
Ryan Gerleve 05fe661f71 Added NetworkPrediction plugin unit tests and utilities covering basic simulation ticking in forward prediction and interpolation modes.
Added some APIs to the plugin to support unit testing without needing a UWorld, actors, etc.

#jira UE-182327
#rb mattias.hornlund
#preflight 642da9944d26bcd1eb1200b9

[CL 24931730 by Ryan Gerleve in ue5-main branch]
2023-04-05 13:25:07 -04:00

26 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "UObject/CoreNet.h"
#include "NetPredictionMockPackageMap.generated.h"
// Placeholder package map that ensures if any of its functionality is actually used.
UCLASS(transient)
class UNetPredictionMockPackageMap : public UPackageMap
{
GENERATED_BODY()
public:
virtual bool WriteObject(FArchive & Ar, UObject* InOuter, FNetworkGUID NetGUID, FString ObjName) override;
virtual bool SerializeObject(FArchive& Ar, UClass* InClass, UObject*& Obj, FNetworkGUID *OutNetGUID = NULL) override;
virtual bool SerializeName(FArchive& Ar, FName& InName) override;
virtual UObject* ResolvePathAndAssignNetGUID(const FNetworkGUID& NetGUID, const FString& PathName) override;
virtual bool SerializeNewActor(FArchive & Ar, class UActorChannel * Channel, class AActor *& Actor) override;
virtual UObject* GetObjectFromNetGUID(const FNetworkGUID& NetGUID, const bool bIgnoreMustBeMapped) override;
virtual FNetworkGUID GetNetGUIDFromObject(const UObject* InObject) const override;
virtual void Serialize(FArchive& Ar) override;
static UNetPredictionMockPackageMap* Get();
};