UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
NetTokenStructDefines.h File Reference
#include "UObject/Class.h"

Go to the source code of this file.

Classes

struct  UE::Net::TNetTokenStructOpsTypeTraits< T >
 

Namespaces

namespace  UE
 
namespace  UE::Net
 

Macros

#define UE_NET_DECLARE_NAMED_NETTOKEN_STRUCT_SERIALIZERS(NAME, API)
 
#define UE_NET_NETTOKEN_GENERATED_BODY(NAME, API)
 
#define UE_NET_IMPLEMENT_NAMED_NETTOKEN_STRUCT_SERIALIZERS(NAME)
 

Macro Definition Documentation

◆ UE_NET_DECLARE_NAMED_NETTOKEN_STRUCT_SERIALIZERS

#define UE_NET_DECLARE_NAMED_NETTOKEN_STRUCT_SERIALIZERS (   NAME,
  API 
)
Value:
template<> struct TStructOpsTypeTraits<F##NAME> : public UE::Net::TNetTokenStructOpsTypeTraits<F##NAME> {}; \
namespace UE::Net \
{ \
}
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition NetworkVersion.cpp:28
Definition StructOpsTypeTraits.h:46
Definition NetTokenStructDefines.h:12

◆ UE_NET_IMPLEMENT_NAMED_NETTOKEN_STRUCT_SERIALIZERS

#define UE_NET_IMPLEMENT_NAMED_NETTOKEN_STRUCT_SERIALIZERS (   NAME)
Value:
bool F##NAME::NetSerialize(FArchive& Ar, UPackageMap* Map, bool& bOutSuccess) \
{ \
bOutSuccess = bOutSuccess && UE::Net::TStructNetTokenDataStoreHelper<F##NAME>::NetSerializeAndExportToken(Ar, Map, *static_cast<F##NAME*>(this)); \
return true; \
} \
bool F##NAME::operator==(const F##NAME& Other) const \
{ \
return GetUniqueKey() == Other.GetUniqueKey(); \
}; \
bool F##NAME::operator!=(const F##NAME& Other) const \
{ \
return GetUniqueKey() != Other.GetUniqueKey(); \
} \
namespace UE::Net { \
struct F##NAME##NetSerializer : public TStructAsNetTokenNetSerializerImpl<F##NAME> { \
static const uint32 Version = 0; \
static inline const ConfigType DefaultConfig = ConfigType(); \
};\
}
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Archive.h:1208
static bool NetSerializeAndExportToken(FArchive &Ar, UPackageMap *Map, T &InOutStateData)
Definition StructNetTokenDataStoreHelper.h:41
Definition CoreNet.h:191
Version
Definition NNEModelData.cpp:15

◆ UE_NET_NETTOKEN_GENERATED_BODY

#define UE_NET_NETTOKEN_GENERATED_BODY (   NAME,
  API 
)
Value:
static FName GetTokenStoreName() \
{ \
return TokenStoreName; \
} \
API bool NetSerialize(FArchive& Ar, UPackageMap* Map, bool& bOutSuccess); \
API bool operator==(const F##NAME& Other) const; \
API bool operator!=(const F##NAME& Other) const;
#define TEXT(x)
Definition Platform.h:1272
UE_FORCEINLINE_HINT bool operator!=(const FIndexedPointer &Other) const
Definition LockFreeList.h:76
#define PREPROCESSOR_TO_STRING(Token)
Definition PreprocessorHelpers.h:103
Definition NameTypes.h:617