Gah - a solution with more questions. – EntropicLqd

UE3:PlayerOwnerDataStore (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 11:47, 6 November 2009 by (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UDK Object >> UIRoot >> UIDataProvider >> UIDataStore >> UIDataStore_GameState >> PlayerOwnerDataStore
Package: 
Engine
This class in other games:
UT3

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

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

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.