G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
UPuzzlesSubsystem Class Reference

@brief Subsystem responsible for managing creature-based puzzles. More...

Public Member Functions

Functions
void DoorTriggers (FGameplayTag channel, FGothicBasicVerbMessage payload)
void CheckPuzzles (FPuzzleCreatureCounter &counter)
 @brief Checks if a door needs to be opened based on creature kill counts.
FName FindCreatureUniqueNameByDoorToOpenName (FName DoorToOpenName)
void AddPuzzleEntryData (FName creatureName, int requiredKills, EPuzzleEvent puzzleEvent, TSubclassOf< UObject > extraData)
 @brief Adds a new puzzle entry with extra data.
void AddPuzzleEntry (FName creatureName, FName doorName, FName saveState, int requiredKills=1, EPuzzleEvent puzzleEvent=EPuzzleEvent ::DeathEvent)
 @brief Adds a new puzzle entry.
void AddPuzzleCount (TSubclassOf< UPuzzleCountExtraData > extraData)
Public Member Functions inherited from UScriptGameInstanceSubsystem
UGameInstance GetGameInstance () const
void Initialize ()
bool ShouldCreateSubsystem (UObject Outer) const
void Tick (float32 DeltaTime)
void Deinitialize ()
Public Member Functions inherited from UObject
bool MarkPackageDirty () const
void RemoveFromRoot ()
bool GetIsRooted () const
bool IsTransient () const
bool Modify (bool bAlwaysMarkDirty=true)
void SetTransactional (bool bTransactional)
bool IsSupportedForNetworking () const
UClass GetClass () const
UObject GetOuter () const
UObject GetTypedOuter (TSubclassOf< UObject > Target) const
 Traverses the outer chain searching for the next object of a certain type.
UPackage GetOutermost () const
UPackage GetPackage () const
void AddToRoot ()
UWorld GetWorld () const
FName GetName () const
FString GetFullName (const UObject StopOuter=nullptr) const
FString GetPathName (const UObject StopOuter=nullptr) const
bool IsA (const UClass Class) const
 Returns true if this object is of the specified type, or a child of that type.
void SaveConfig ()
void LoadConfig ()
void ReloadConfig ()
void CopyScriptPropertiesFrom (const UObject OtherObject)
void opCast (?&Address) const
FString ToString () const

Static Public Member Functions

Static Functions
static void CallGameplayMessage (FGameplayTag channel, FName connected)
static void CallGlobalEvent (UWorld World, FName connected)
static void GlobalCallGameplayMessage (UWorld World, FGameplayTag channel, FName connected)
static void GlobalCloseDoor (FName connected)
 @brief Close a door from blueprint.
static void GlobalCloseDoorWorld (UWorld World, FName connected)
static void GlobalOpenDoor (FName connected)
 @brief Open a door from blueprint.
static void GlobalOpenDoorWorld (UWorld World, FName connected)
static void GlobalUnlockDoor (FName doorName)
 @brief Unlock a door from blueprint.
static UClass StaticClass ()
Static Public Member Functions inherited from UScriptGameInstanceSubsystem
static UClass StaticClass ()
Static Public Member Functions inherited from UGameInstanceSubsystem
static UClass StaticClass ()
Static Public Member Functions inherited from USubsystem
static UClass StaticClass ()
Static Public Member Functions inherited from UObject
static UClass StaticClass ()

Public Attributes

PuzzlesSubsystem
TArray< FPuzzleStepsCounter > m_PuzzleStepArray
TArray< FName > m_FinishedPuzzles
TArray< FPuzzleCreatureCounter > m_PuzzleCreatureArray
 @brief Array to store all creature counters for puzzles
Public Attributes inherited from UScriptGameInstanceSubsystem
const UGameInstance GameInstance
Public Attributes inherited from UObject
const UClass Class
const UObject Outer
const UPackage Outermost
const UPackage Package
const UWorld World
const FName Name
const bool IsRooted

Puzzles|Persistence

TMap< FName, int > CreatureKillCounterMap
 @brief Returns a read-only reference to the full kill counter map.
TMap< FName, int > m_CreatureKillCounterSaved
const TMap< FName, int > & GetCreatureKillCounterMap () const
 @brief Returns a read-only reference to the full kill counter map.
void SetCreatureKillCounterMap (TMap< FName, int > NewKillMap)
 @brief Overwrites the entire kill counter map.

Detailed Description

@brief Subsystem responsible for managing creature-based puzzles.

Member Function Documentation

◆ AddPuzzleCount()

void AddPuzzleCount ( TSubclassOf< UPuzzleCountExtraData > extraData)

◆ AddPuzzleEntry()

void AddPuzzleEntry ( FName creatureName,
FName doorName,
FName saveState,
int requiredKills = 1,
EPuzzleEvent puzzleEvent = EPuzzleEvent :: DeathEvent )

@brief Adds a new puzzle entry.

◆ AddPuzzleEntryData()

void AddPuzzleEntryData ( FName creatureName,
int requiredKills,
EPuzzleEvent puzzleEvent,
TSubclassOf< UObject > extraData )

@brief Adds a new puzzle entry with extra data.

◆ CallGameplayMessage()

void CallGameplayMessage ( FGameplayTag channel,
FName connected )
static

◆ CallGlobalEvent()

void CallGlobalEvent ( UWorld World,
FName connected )
static

◆ CheckPuzzles()

void CheckPuzzles ( FPuzzleCreatureCounter & counter)

@brief Checks if a door needs to be opened based on creature kill counts.

◆ DoorTriggers()

void DoorTriggers ( FGameplayTag channel,
FGothicBasicVerbMessage payload )

◆ FindCreatureUniqueNameByDoorToOpenName()

FName FindCreatureUniqueNameByDoorToOpenName ( FName DoorToOpenName)

◆ GetCreatureKillCounterMap()

const TMap< FName, int > & GetCreatureKillCounterMap ( ) const

@brief Returns a read-only reference to the full kill counter map.

◆ GlobalCallGameplayMessage()

void GlobalCallGameplayMessage ( UWorld World,
FGameplayTag channel,
FName connected )
static

◆ GlobalCloseDoor()

void GlobalCloseDoor ( FName connected)
static

@brief Close a door from blueprint.

◆ GlobalCloseDoorWorld()

void GlobalCloseDoorWorld ( UWorld World,
FName connected )
static

◆ GlobalOpenDoor()

void GlobalOpenDoor ( FName connected)
static

@brief Open a door from blueprint.

◆ GlobalOpenDoorWorld()

void GlobalOpenDoorWorld ( UWorld World,
FName connected )
static

◆ GlobalUnlockDoor()

void GlobalUnlockDoor ( FName doorName)
static

@brief Unlock a door from blueprint.

◆ SetCreatureKillCounterMap()

void SetCreatureKillCounterMap ( TMap< FName, int > NewKillMap)

@brief Overwrites the entire kill counter map.

◆ StaticClass()

UClass StaticClass ( )
static

Member Data Documentation

◆ CreatureKillCounterMap

TMap<FName,int> CreatureKillCounterMap

@brief Returns a read-only reference to the full kill counter map.

◆ m_CreatureKillCounterSaved

TMap<FName,int> m_CreatureKillCounterSaved

◆ m_FinishedPuzzles

TArray<FName> m_FinishedPuzzles

◆ m_PuzzleCreatureArray

TArray<FPuzzleCreatureCounter> m_PuzzleCreatureArray

@brief Array to store all creature counters for puzzles

◆ m_PuzzleStepArray

TArray<FPuzzleStepsCounter> m_PuzzleStepArray