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