Give structs initial values
This commit is contained in:
parent
810a833cb5
commit
6252377264
@ -12,19 +12,19 @@ struct FDamageInfo
|
||||
GENERATED_BODY()
|
||||
|
||||
UPROPERTY()
|
||||
AActor* DamagedActor;
|
||||
TObjectPtr<AActor> DamagedActor = nullptr;
|
||||
|
||||
UPROPERTY()
|
||||
float Damage;
|
||||
float Damage = 0.0f;
|
||||
|
||||
UPROPERTY()
|
||||
const UDamageType* DamageType;
|
||||
const UDamageType* DamageType = nullptr;
|
||||
|
||||
UPROPERTY()
|
||||
AController* InstigatedBy;
|
||||
TObjectPtr<AController> InstigatedBy = nullptr;
|
||||
|
||||
UPROPERTY()
|
||||
AActor* DamageCauser;
|
||||
TObjectPtr<AActor> DamageCauser = nullptr;
|
||||
};
|
||||
|
||||
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnDamageDelegate, FDamageInfo, damageInfo);
|
||||
|
@ -14,14 +14,14 @@ struct FExpTableRow : public FTableRowBase
|
||||
GENERATED_BODY()
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
int Level;
|
||||
int Level = 0;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
int ExpRequiredForNextLevel;
|
||||
int ExpRequiredForNextLevel = 0;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
int CumulativeExpForNextLevel;
|
||||
int CumulativeExpForNextLevel = 0;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
int CumulativeExpForPreviousLevel;
|
||||
int CumulativeExpForPreviousLevel = 0;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user