6#include "Containers/UnrealString.h"
9
10
11
12
13
26 FNetworkGUID( uint32 V )
32 friend bool operator==(
const FNetworkGUID& X,
const FNetworkGUID& Y )
34 return (X.Value == Y.Value);
37 friend bool operator!=(
const FNetworkGUID& X,
const FNetworkGUID& Y )
39 return (X.Value != Y.Value);
42 friend FArchive& operator<<( FArchive& Ar, FNetworkGUID& G )
44 Ar.SerializeIntPacked(G.Value);
50 void BuildFromNetIndex( int32 StaticNetIndex )
52 Value = (StaticNetIndex << 1 | 1);
55 int32 ExtractNetIndex()
64 friend uint32 GetTypeHash(
const FNetworkGUID& Guid )
69 bool IsDynamic()
const
71 return Value > 0 && !(Value & 1);
84 bool NetSerialize( FArchive& Ar,
class UPackageMap* Map,
bool& bOutSuccess );
87 bool IsDefault()
const
92 static FNetworkGUID GetDefault()
94 return FNetworkGUID(1);
102 FString ToString()
const
104 return FString::Printf(
TEXT(
"%d"), Value);
109 static FNetworkGUID Make(int32 seed,
bool bIsStatic)
111 return FNetworkGUID(seed << 1 | (bIsStatic ? 1 : 0));