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

Tracks ownership between characters, guilds, etc. More...

Public Member Functions

Functions
TSet< AGothicCharacterState > GetPersonalOwnersOfItemType (TSubclassOf< UItemDefinition > ItemDefinition, FOwnershipSettings ItemOwnershipSettings) const
 Return all personal owners of the given Item.
TSet< AGothicCharacterState > GetAllPersonalOwnersOfArea (FGameplayTag Area) const
 Returns all Characters that personally own the given Area.
TSet< AGothicCharacterState > GetAllPersonalOwnersOfInteractiveObject (const AInteractiveObjectActor InteractiveObjectActor) const
 Returns all personal owners of the given InteractiveObjectActor.
TSet< AGothicCharacterState > GetAllPersonalOwnersOfItem (FItemVirtualData ItemData) const
 Returns all personal owners of the given item.
TSet< AGothicCharacterState > GetAllPersonalOwnersOfItemVisual (const AItemVisualWorld ItemVisualWorld) const
 Returns all personal owners of the given item.
EOwnershipRelationFlags GetCharacterOwnershipOfArea (const AGothicCharacterState CharacterState, FGameplayTag Area) const
 Returns the ownership relation towards the given Area.
FGameplayTagContainer GetGuildOwnersFromConfig (FOwnershipSettings ItemOwnershipSettings) const
 Return all personal owners defined in the given ownership settings.
EOwnershipRelationFlags GetOwnershipRelationOfCharacter (const AGothicCharacterState CharacterState, FOwnershipSettings OwnershipSettings) const
 Returns the ownership relation as configured in the given struct.
EOwnershipRelationFlags GetOwnershipRelationOfInteractiveObjectInWorld (const AGothicCharacterState CharacterState, const AInteractiveObjectActor InteractiveObject) const
 Return the ownership relation towards the given InteractiveObject.
EOwnershipRelationFlags GetOwnershipRelationOfItemInWorld (const AGothicCharacterState CharacterState, const AItemVisualWorld Item) const
 Return the ownership relation towards the given World Item.
EOwnershipRelationFlags GetOwnershipRelationOfItemType (const AGothicCharacterState CharacterState, TSubclassOf< UItemDefinition > ItemDefinition, FOwnershipSettings ItemOwnershipSettings) const
 Return the ownership relation towards the given Item.
EOwnershipRelationFlags GetOwnershipRelationOfItemVirtualData (const AGothicCharacterState CharacterState, FItemVirtualData Item) const
 Return the ownership relation towards the given virtual Item.
FGameplayTagContainer GetOwningGuildsOfItemType (TSubclassOf< UItemDefinition > ItemDefinition, FOwnershipSettings ItemOwnershipSettings) const
 Return all guilds owning items of the given type.
TSet< AGothicCharacterState > GetPersonalOwnersFromConfig (FOwnershipSettings ItemOwnershipSettings) const
 Return all personal owners defined in the given ownership settings.
FGameplayTagContainer GetAllGuildsOwningArea (FGameplayTag Area) const
 Returns all Guilds that own the given Area.
bool IsAreaOwnedByAnyGuild (FGameplayTag Area) const
 Returns true if any guild has ownership over the given area.
bool IsAreaOwnedByAnyone (FGameplayTag Area) const
 Returns true if any person or guild has ownership over the given area.
bool IsAreaOwnedByAnyPerson (FGameplayTag Area) const
 Returns true if any person has ownership over the given area.
bool IsCharacterPersonalOwnerOfArea (const AGothicCharacterState CharacterState, FGameplayTag Area) const
 Returns true if the given Character personally owns the given Area.
bool IsCharacterPersonalOwnerOfItem (const AGothicCharacterState CharacterState, FItemVirtualData ItemData) const
 Returns true if the given Character personally owns this item.
bool IsCharacterPersonalOwnerOfItemVisual (const AGothicCharacterState CharacterState, const AItemVisualWorld ItemVisualWorld) const
 Returns true if the given Character personally owns this item.
bool IsGuildOwnerOfArea (FGameplayTag Guild, FGameplayTag Area) const
 Returns true if the given Guild personally owns the given Area.
void RemovePersonalAreaOwnershipOfContext (AGothicCharacterState CharacterState, const UObject Context)
 Un-registers personal ownership between a Character and Area.
void RemovePersonalItemOwnershipOfContext (AGothicCharacterState CharacterState, const UObject Context)
 Un-registers personal ownership between a Character and Item.
void SetPersonalAreaOwnershipForContext (AGothicCharacterState CharacterState, const UObject Context, FPersonalAreaOwnershipSettings Ownership)
 Registers personal ownership between a Character and Area. Ownership is valid as long as the given context object is valid.
void SetPersonalItemOwnershipForContext (AGothicCharacterState CharacterState, const UObject Context, FPersonalItemOwnershipSettings Ownership)
 Registers personal ownership between a Character and Item. Ownership is valid as long as the given context object is valid.
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 UOwnershipSubsystem Get ()
static UClass StaticClass ()
Static Public Member Functions inherited from UWorldSubsystem
static UClass StaticClass ()
Static Public Member Functions inherited from USubsystem
static UClass StaticClass ()
Static Public Member Functions inherited from UObject
static UClass StaticClass ()

Additional Inherited Members

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

Detailed Description

Tracks ownership between characters, guilds, etc.

@note Not saved in Savegame, needs to be build up from other data.

Member Function Documentation

◆ Get()

UOwnershipSubsystem Get ( )
static

◆ GetAllGuildsOwningArea()

FGameplayTagContainer GetAllGuildsOwningArea ( FGameplayTag Area) const

Returns all Guilds that own the given Area.

◆ GetAllPersonalOwnersOfArea()

TSet< AGothicCharacterState > GetAllPersonalOwnersOfArea ( FGameplayTag Area) const

Returns all Characters that personally own the given Area.

◆ GetAllPersonalOwnersOfInteractiveObject()

TSet< AGothicCharacterState > GetAllPersonalOwnersOfInteractiveObject ( const AInteractiveObjectActor InteractiveObjectActor) const

Returns all personal owners of the given InteractiveObjectActor.

◆ GetAllPersonalOwnersOfItem()

TSet< AGothicCharacterState > GetAllPersonalOwnersOfItem ( FItemVirtualData ItemData) const

Returns all personal owners of the given item.

◆ GetAllPersonalOwnersOfItemVisual()

TSet< AGothicCharacterState > GetAllPersonalOwnersOfItemVisual ( const AItemVisualWorld ItemVisualWorld) const

Returns all personal owners of the given item.

◆ GetCharacterOwnershipOfArea()

EOwnershipRelationFlags GetCharacterOwnershipOfArea ( const AGothicCharacterState CharacterState,
FGameplayTag Area ) const

Returns the ownership relation towards the given Area.

◆ GetGuildOwnersFromConfig()

FGameplayTagContainer GetGuildOwnersFromConfig ( FOwnershipSettings ItemOwnershipSettings) const

Return all personal owners defined in the given ownership settings.

◆ GetOwnershipRelationOfCharacter()

EOwnershipRelationFlags GetOwnershipRelationOfCharacter ( const AGothicCharacterState CharacterState,
FOwnershipSettings OwnershipSettings ) const

Returns the ownership relation as configured in the given struct.

◆ GetOwnershipRelationOfInteractiveObjectInWorld()

EOwnershipRelationFlags GetOwnershipRelationOfInteractiveObjectInWorld ( const AGothicCharacterState CharacterState,
const AInteractiveObjectActor InteractiveObject ) const

Return the ownership relation towards the given InteractiveObject.

◆ GetOwnershipRelationOfItemInWorld()

EOwnershipRelationFlags GetOwnershipRelationOfItemInWorld ( const AGothicCharacterState CharacterState,
const AItemVisualWorld Item ) const

Return the ownership relation towards the given World Item.

◆ GetOwnershipRelationOfItemType()

EOwnershipRelationFlags GetOwnershipRelationOfItemType ( const AGothicCharacterState CharacterState,
TSubclassOf< UItemDefinition > ItemDefinition,
FOwnershipSettings ItemOwnershipSettings ) const

Return the ownership relation towards the given Item.

◆ GetOwnershipRelationOfItemVirtualData()

EOwnershipRelationFlags GetOwnershipRelationOfItemVirtualData ( const AGothicCharacterState CharacterState,
FItemVirtualData Item ) const

Return the ownership relation towards the given virtual Item.

◆ GetOwningGuildsOfItemType()

FGameplayTagContainer GetOwningGuildsOfItemType ( TSubclassOf< UItemDefinition > ItemDefinition,
FOwnershipSettings ItemOwnershipSettings ) const

Return all guilds owning items of the given type.

◆ GetPersonalOwnersFromConfig()

TSet< AGothicCharacterState > GetPersonalOwnersFromConfig ( FOwnershipSettings ItemOwnershipSettings) const

Return all personal owners defined in the given ownership settings.

◆ GetPersonalOwnersOfItemType()

TSet< AGothicCharacterState > GetPersonalOwnersOfItemType ( TSubclassOf< UItemDefinition > ItemDefinition,
FOwnershipSettings ItemOwnershipSettings ) const

Return all personal owners of the given Item.

◆ IsAreaOwnedByAnyGuild()

bool IsAreaOwnedByAnyGuild ( FGameplayTag Area) const

Returns true if any guild has ownership over the given area.

◆ IsAreaOwnedByAnyone()

bool IsAreaOwnedByAnyone ( FGameplayTag Area) const

Returns true if any person or guild has ownership over the given area.

◆ IsAreaOwnedByAnyPerson()

bool IsAreaOwnedByAnyPerson ( FGameplayTag Area) const

Returns true if any person has ownership over the given area.

◆ IsCharacterPersonalOwnerOfArea()

bool IsCharacterPersonalOwnerOfArea ( const AGothicCharacterState CharacterState,
FGameplayTag Area ) const

Returns true if the given Character personally owns the given Area.

◆ IsCharacterPersonalOwnerOfItem()

bool IsCharacterPersonalOwnerOfItem ( const AGothicCharacterState CharacterState,
FItemVirtualData ItemData ) const

Returns true if the given Character personally owns this item.

◆ IsCharacterPersonalOwnerOfItemVisual()

bool IsCharacterPersonalOwnerOfItemVisual ( const AGothicCharacterState CharacterState,
const AItemVisualWorld ItemVisualWorld ) const

Returns true if the given Character personally owns this item.

◆ IsGuildOwnerOfArea()

bool IsGuildOwnerOfArea ( FGameplayTag Guild,
FGameplayTag Area ) const

Returns true if the given Guild personally owns the given Area.

◆ RemovePersonalAreaOwnershipOfContext()

void RemovePersonalAreaOwnershipOfContext ( AGothicCharacterState CharacterState,
const UObject Context )

Un-registers personal ownership between a Character and Area.

◆ RemovePersonalItemOwnershipOfContext()

void RemovePersonalItemOwnershipOfContext ( AGothicCharacterState CharacterState,
const UObject Context )

Un-registers personal ownership between a Character and Item.

◆ SetPersonalAreaOwnershipForContext()

void SetPersonalAreaOwnershipForContext ( AGothicCharacterState CharacterState,
const UObject Context,
FPersonalAreaOwnershipSettings Ownership )

Registers personal ownership between a Character and Area. Ownership is valid as long as the given context object is valid.

◆ SetPersonalItemOwnershipForContext()

void SetPersonalItemOwnershipForContext ( AGothicCharacterState CharacterState,
const UObject Context,
FPersonalItemOwnershipSettings Ownership )

Registers personal ownership between a Character and Item. Ownership is valid as long as the given context object is valid.

◆ StaticClass()

UClass StaticClass ( )
static