Map provider weather inputs
This commit is contained in:
@@ -56,6 +56,9 @@ struct FAgrarianWeatherProviderSnapshot
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Agrarian|Weather")
|
||||
float PressureMslHpa = 0.0f;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Agrarian|Weather")
|
||||
float VisibilityMeters = 10000.0f;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Agrarian|Weather")
|
||||
int32 WeatherCode = 0;
|
||||
|
||||
@@ -142,6 +145,9 @@ public:
|
||||
UFUNCTION(BlueprintCallable, Category = "Agrarian|Weather")
|
||||
bool ApplySnapshotToGameState(const FAgrarianWeatherProviderSnapshot& Snapshot, AAgrarianGameState* GameState) const;
|
||||
|
||||
UFUNCTION(BlueprintPure, Category = "Agrarian|Weather")
|
||||
FAgrarianMappedWeatherInputs MapSnapshotToAgrarianWeatherInputs(const FAgrarianWeatherProviderSnapshot& Snapshot) const;
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Agrarian|Weather")
|
||||
bool TryApplyCachedSnapshot(FName TileId, const FString& Provider, AAgrarianGameState* GameState);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user