6#include "Containers/Map.h"
10#include "DestructibleHLODComponent.generated.h"
26 static const uint8 MAX_HEALTH = 0xFF;
30 , ActorHealth(MAX_HEALTH)
36 , ActorHealth(MAX_HEALTH)
42 return ActorIndex ==
Other.ActorIndex && ActorHealth ==
Other.ActorHealth;
62 return FFastArraySerializer::FastArrayDeltaSerialize<FWorldPartitionDestructibleHLODDamagedActorState, FWorldPartitionDestructibleHLODState>(DamagedActors,
DeltaParms, *
this);
68 const bool IsClient()
const {
return bIsClient; }
69 const bool IsServer()
const {
return bIsServer; }
89 bool bIsServer =
false;
90 bool bIsClient =
false;
91 int32 NumDestructibleActors = 0;
97 enum { WithNetDeltaSerializer =
true };
112 checkf((ComponentIndex & ~kComponentIndexMask) == 0,
TEXT(
"ComponentIndex exceeds %u bits"), kComponentIndexBits);
113 checkf((InstanceCount & ~kItemCountMask) == 0,
TEXT(
"InstanceCount exceeds %u bits"), kItemCountBits);
115 Mapping.A = ((ComponentIndex & kComponentIndexMask) << kComponentIndexShift) | (InstanceCount & kItemCountMask);
122 ComponentIndex = (
A >> kComponentIndexShift) & kComponentIndexMask;
164 checkf((RangeOffset & ~kRangeOffsetMask) == 0,
TEXT(
"RangeOffset exceeds available storage"));
166 Mapping.A = (RangeOffset & kRangeOffsetMask);
167 Mapping.B = RangeCount;
173 checkf((ComponentIndex & ~kComponentIndexMask) == 0,
TEXT(
"ComponentIndex exceeds %u bits"), kComponentIndexBits);
174 checkf((InstanceCount & ~kItemCountMask) == 0,
TEXT(
"InstanceCount exceeds %u bits"), kItemCountBits);
176 Mapping.A = kInlineTagMask
177 | ((ComponentIndex & kComponentIndexMask) << kComponentIndexShift)
178 | (InstanceCount & kItemCountMask);
185 return (
A & kInlineTagMask) != 0;
261 uint32 RangeOffset, RangeCount;
264 for (
uint32 i = 0; i < RangeCount; ++i)
278UCLASS(MinimalAPI,
HideDropDown,
NotPlaceable,
HideCategories = (
Tags,
Sockets,
ComponentTick,
ComponentReplication,
Activation, Cooking, Events, AssetUserData,
Collision))
299 void SetupVisibilityTexture();
300 void UpdateVisibilityTexture();
318 uint32 VisibilityTextureSize;
329UCLASS(Deprecated, MinimalAPI)
#define check(expr)
Definition AssertionMacros.h:314
#define checkf(expr, format,...)
Definition AssertionMacros.h:315
@ INDEX_NONE
Definition CoreMiscDefines.h:150
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
Definition TextureResource.h:250
Definition Sockets.Build.cs:6
Definition ArrayView.h:139
Definition AssetRegistryState.h:50
Definition UnrealString.h.inl:34
Definition DestructibleHLODComponent.h:331
Definition HLODInstancedStaticMeshComponent.h:14
Definition MaterialInstanceDynamic.h:15
Definition MaterialInterface.h:296
Definition Texture2DDynamic.h:35
Definition DestructibleHLODComponent.h:280
@ false
Definition radaudio_common.h:23
Definition DestructibleHLODComponent.h:159
void GetInline(uint32 &OutComponentIndex, uint32 &OutInstanceStart, uint32 &OutInstanceCount) const
Definition DestructibleHLODComponent.h:195
static FActorInstanceMappingsRef MakeMappingInline(uint32 ComponentIndex, uint32 InstanceStart, uint32 InstanceCount)
Definition DestructibleHLODComponent.h:171
void GetComponentsMappingRange(uint32 &OutRangeOffset, uint32 &OutRangeCount) const
Definition DestructibleHLODComponent.h:188
bool IsInline() const
Definition DestructibleHLODComponent.h:183
Definition DestructibleHLODComponent.h:107
void Decode(uint32 &ComponentIndex, uint32 &OutInstanceStart, uint32 &OutInstanceCount) const
Definition DestructibleHLODComponent.h:120
Definition FastArraySerializer.h:299
Definition FastArraySerializer.h:409
Definition DestructibleHLODComponent.h:229
Definition DestructibleHLODComponent.h:22
FWorldPartitionDestructibleHLODDamagedActorState(int32 InActorIndex)
Definition DestructibleHLODComponent.h:34
FWorldPartitionDestructibleHLODDamagedActorState()
Definition DestructibleHLODComponent.h:28
Definition DestructibleHLODComponent.h:56
const bool IsClient() const
Definition DestructibleHLODComponent.h:68
const bool IsServer() const
Definition DestructibleHLODComponent.h:69
bool NetDeltaSerialize(FNetDeltaSerializeInfo &DeltaParms)
Definition DestructibleHLODComponent.h:60
Definition ObjectPtr.h:488
Definition StructOpsTypeTraits.h:11
Definition StructOpsTypeTraits.h:46