UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PushModelMacros.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#ifndef WITH_PUSH_MODEL
6
#define WITH_PUSH_MODEL 0
7
#endif
8
9
#define DISABLE_PUSH_MODEL_VALIDATION 0
10
#define WITH_PUSH_VALIDATION_SUPPORT (WITH_PUSH_MODEL && !(UE_BUILD_SHIPPING || UE_BUILD_TEST || DISABLE_PUSH_MODEL_VALIDATION))
11
12
#if WITH_PUSH_MODEL
13
14
// This macro could be moved somewhere else and be made more generic if we want.
15
16
#define REPLICATED_BASE_CLASS(ClassName) \
17
private: \
18
uint64 NetPushId_Internal = uint64(int64(INDEX_NONE)); \
19
virtual void SetNetPushIdDynamic(const uint64 InNetPushId) override final { NetPushId_Internal = InNetPushId; } \
20
public: \
21
virtual uint64 GetNetPushIdDynamic() const override final { return GetNetPushId(); } \
22
uint64 GetNetPushId() const { return NetPushId_Internal; }
23
24
#else
25
26
#define REPLICATED_BASE_CLASS(ClassName)
27
28
#endif
// WITH_PUSH_MODEL
Engine
Source
Runtime
Net
Core
Public
Net
Core
PushModel
PushModelMacros.h
Generated by
1.9.8