Gah - a solution with more questions. – EntropicLqd

UE3:PlayerOwnerDataStore (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT3 Object >> UIRoot >> UIDataProvider >> UIDataStore >> UIDataStore_GameState >> PlayerOwnerDataStore
Package: 
Engine
This class in other games:
UDK

Provides the UI with all data associated with the player which owns this viewport.

Copyright 1998-2007 Epic Games, Inc. All Rights Reserved

Properties

CurrentWeapon

Type: CurrentWeaponDataProvider

Modifiers: protected

The WeaponDataProvider associated with the currently selected weapon.

Todo: not yet implemented

PlayerData

Type: PlayerOwnerDataProvider

Modifiers: protected

The PlayerDataProvider for the owning player.

PowerupList

Type: array<PowerupDataProvider>

Modifiers: protected

PowerupDataProvider for all powerups currently in the players inventory.

Todo: not yet implemented

ProviderTypes

Type: PlayerDataProviderTypes

Modifiers: const

The data provider types used by this PlayerOwnerDataStore

Default value:

Member Value
CurrentWeaponDataProviderClass Class'Engine.CurrentWeaponDataProvider'
PlayerOwnerDataProviderClass Class'Engine.PlayerOwnerDataProvider'
PowerupDataProviderClass Class'Engine.PowerupDataProvider'
WeaponDataProviderClass Class'Engine.WeaponDataProvider'

WeaponList

Type: array<WeaponDataProvider>

Modifiers: protected

Weapon data providers for all weapons currently held by the player.

Todo: not yet implemented

Default values

Property Value
Tag 'PlayerOwner'

Structs

PlayerDataProviderTypes

Modifiers: native

Contains the classes which should be used for instancing data providers.

class<PlayerOwnerDataProvider> PlayerOwnerDataProviderClass 
the class to use for the player owner data provider
class<CurrentWeaponDataProvider> CurrentWeaponDataProviderClass 
the class to use for the current weapon data provider
class<WeaponDataProvider> WeaponDataProviderClass 
the class to use for the general weapon data providers
class<PowerupDataProvider> PowerupDataProviderClass 
the class to use for the power data provider.

Instance functions

ClearDataProviders

final function ClearDataProviders ()

Clears all data provider references.

NotifyGameSessionEnded

function bool NotifyGameSessionEnded ()

Overrides: UIDataStore_GameState.NotifyGameSessionEnded

Called when the current map is being unloaded. Cleans up any references which would prevent garbage collection.

Returns:

TRUE indicates that this data store should be automatically unregistered when this game session ends.

SetPlayerDataProvider

function SetPlayerDataProvider (PlayerDataProvider NewPlayerData)

Links the PlayerDataProvider for the local player to this data store.

Parameters:

  • NewPlayerData - the new PlayerDataProvider to use for presenting this player's data to the UI.