Skip to content

Commit

Permalink
fix: FIRSubsystem now saved again
Browse files Browse the repository at this point in the history
  • Loading branch information
Panakotta00 committed Oct 18, 2024
1 parent 7c74702 commit 22ad8b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/FicsItReflection/Public/FIRSubsystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "CoreMinimal.h"
#include "Patching/NativeHookManager.h"
#include "Subsystem/ModSubsystem.h"
#include "FGSaveInterface.h"
#include "FIRSubsystem.generated.h"

class UFGRailroadTrackConnectionComponent;
Expand Down Expand Up @@ -35,7 +36,7 @@ struct FICSITREFLECTION_API FFIRFactoryConnectorSettings {
};

UCLASS()
class FICSITREFLECTION_API AFIRSubsystem : public AModSubsystem {
class FICSITREFLECTION_API AFIRSubsystem : public AModSubsystem, public IFGSaveInterface {
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable, Category = "Computer", meta = (WorldContext = "WorldContext"))
Expand All @@ -45,6 +46,10 @@ class FICSITREFLECTION_API AFIRSubsystem : public AModSubsystem {
virtual void BeginPlay() override;
// End AActor

// Begin IFGSaveInterface
virtual bool ShouldSave_Implementation() const override { return true; }
// End IFGSaveInterface

void ForceRailroadSwitch(UFGRailroadTrackConnectionComponent* RailroadSwitch, int64 Track);
FFIRRailroadSwitchForce* GetForcedRailroadSwitch(UFGRailroadTrackConnectionComponent* RailroadSwitch);

Expand Down

0 comments on commit 22ad8b3

Please sign in to comment.