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

Public Member Functions

GameSession
void DestroySession () const
QuickLoad
void SetQuickLoadAfterLoadMap (bool save)
 Destroy session has an implementation here because can be called from a client without access to the gamemode.
Functions
const FString & GetDebugOnScreenBuildInfo () const
void SaveSettings ()
 Functions.
Public Member Functions inherited from UGameInstance
ULocalPlayer FindLocalPlayerFromControllerId (int ControllerId) const
ULocalPlayer CreateLocalPlayer (int ControllerId, FString &OutError, bool bSpawnPlayerController)
ULocalPlayer CreateLocalPlayer (FPlatformUserId UserId, FString &OutError, bool bSpawnPlayerController)
int AddLocalPlayer (ULocalPlayer NewPlayer, FPlatformUserId UserId)
bool RemoveLocalPlayer (ULocalPlayer ExistingPlayer)
int GetNumLocalPlayers () const
ULocalPlayer GetLocalPlayerByIndex (int Index) const
APlayerController GetFirstLocalPlayerController (const UWorld World=nullptr) const
ULocalPlayer CreateInitialPlayer (FString &OutError)
ULocalPlayer FindLocalPlayerFromUniqueNetId (FUniqueNetIdRepl UniqueNetId) const
ULocalPlayer GetFirstGamePlayer () const
void HandleNetworkError (ENetworkFailure FailureType, bool bIsServer)
 Opportunity for blueprints to handle network errors.
void HandleTravelError (ETravelFailure FailureType)
 Opportunity for blueprints to handle travel errors.
void Init ()
 Opportunity for blueprints to handle the game instance being initialized.
void Shutdown ()
 Opportunity for blueprints to handle the game instance being shutdown.
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 UClass StaticClass ()
Static Public Member Functions inherited from UGameInstance
static UClass StaticClass ()
Static Public Member Functions inherited from UObject
static UClass StaticClass ()

Public Attributes

G1RGameInstance
float32 m_CameraSensitivity
bool m_InvertedVerticalCamera
 UI Settings related stuff, mainly done for the demo Variables.
bool m_InvertedHorizontalCamera
Input | Controller
FGameControllerDirectionChangedDelegate GameControllerDirectionChangedDelegate
MapLoading
FOnMainMapLoadedComplete__G1RGameInstance MainMapLoadedComplete
Variables
const FString DebugOnScreenBuildInfo
Public Attributes inherited from UGameInstance
FOnUserInputDeviceConnectionChange OnInputDeviceConnectionChange
 Callback for when an input device connection state has changed (a new gamepad was connected or disconnected).
FOnUserInputDevicePairingChange OnUserInputDevicePairingChange
 Callback when an input device has changed pairings (the owning platform user has changed for that device).
const int NumLocalPlayers
const ULocalPlayer FirstGamePlayer
FOnPawnControllerChanged OnPawnControllerChangedDelegates
 gets triggered shortly after a pawn's controller is set. Most of the time it signals that the Controller has changed but in edge cases (like during replication) it might end up broadcasting the same pawn-controller pair more than once
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

Input

const EGameInputMode InputMode
FGameInputDeviceModeChangedDelegate GameInputDeviceChangedDelegate
const EGameInputDevice InputDevice
EGameInputDevice GetInputDevice () const
EGameInputMode GetInputMode () const
void SetInputMode (EGameInputMode Mode, UUserWidget FocusWidget=nullptr)

Settings

const UGothicGameUserSettings Settings
UGothicGameUserSettings GetSettings () const

Member Function Documentation

◆ DestroySession()

void DestroySession ( ) const

◆ GetDebugOnScreenBuildInfo()

const FString & GetDebugOnScreenBuildInfo ( ) const

◆ GetInputDevice()

EGameInputDevice GetInputDevice ( ) const

◆ GetInputMode()

EGameInputMode GetInputMode ( ) const

◆ GetSettings()

UGothicGameUserSettings GetSettings ( ) const

◆ SaveSettings()

void SaveSettings ( )

Functions.

◆ SetInputMode()

void SetInputMode ( EGameInputMode Mode,
UUserWidget FocusWidget = nullptr )

◆ SetQuickLoadAfterLoadMap()

void SetQuickLoadAfterLoadMap ( bool save)

Destroy session has an implementation here because can be called from a client without access to the gamemode.

◆ StaticClass()

UClass StaticClass ( )
static

Member Data Documentation

◆ DebugOnScreenBuildInfo

const FString DebugOnScreenBuildInfo

◆ GameControllerDirectionChangedDelegate

FGameControllerDirectionChangedDelegate GameControllerDirectionChangedDelegate

◆ GameInputDeviceChangedDelegate

FGameInputDeviceModeChangedDelegate GameInputDeviceChangedDelegate

◆ InputDevice

const EGameInputDevice InputDevice

◆ InputMode

const EGameInputMode InputMode

◆ m_CameraSensitivity

float32 m_CameraSensitivity

◆ m_InvertedHorizontalCamera

bool m_InvertedHorizontalCamera

◆ m_InvertedVerticalCamera

bool m_InvertedVerticalCamera

UI Settings related stuff, mainly done for the demo Variables.

◆ MainMapLoadedComplete

◆ Settings

const UGothicGameUserSettings Settings