Add Agrarian dev console commands

This commit is contained in:
2026-05-11 01:12:07 -07:00
parent 0b006799a7
commit e6a6cd9e58
3 changed files with 153 additions and 1 deletions
@@ -8,6 +8,7 @@
class UInputMappingContext;
class UUserWidget;
class AAgrarianShelterActor;
/**
* Basic PlayerController class for a third person game
@@ -49,4 +50,32 @@ protected:
/** Returns true if the player should use UMG touch controls */
bool ShouldUseTouchControls() const;
public:
UFUNCTION(Exec)
void AgrarianGrantItem(FName ItemId, int32 Quantity);
UFUNCTION(Exec)
void AgrarianSaveWorld();
UFUNCTION(Exec)
void AgrarianLoadWorld();
UFUNCTION(Exec)
void AgrarianSurvival();
UFUNCTION(Exec)
void AgrarianHeal();
protected:
UFUNCTION(Server, Reliable)
void ServerAgrarianGrantItem(FName ItemId, int32 Quantity);
UFUNCTION(Server, Reliable)
void ServerAgrarianSaveWorld();
UFUNCTION(Server, Reliable)
void ServerAgrarianLoadWorld();
UFUNCTION(Server, Reliable)
void ServerAgrarianHeal();
};