C# Class GamePrefs, tf_client

A static class that wraps PlayerPrefs calls
Inheritance: System.Object
显示文件 Open project: wids-eria/tf_client Class Usage Examples

Public Properties

Property Type Description
defaultServer string

Public Methods

Method Description
GetCharacterClass ( ) : Player.CharacterClass

Gets the character class.

GetMasterVolume ( ) : float

Gets the master volume.

GetServerURL ( ) : string

Get the url of the last server used

GetUserName ( ) : string

Get the name of the last user to successfully have logged in

GetWorldId ( ) : int

Get the id of the most recently used world

SetCharacterClass ( Player, characterClass ) : void

Sets the character class.

SetMasterVolume ( float volume ) : void

Sets the master volume.

SetServerURL ( string url ) : void

Cache the url of the most recent server accessed

SetUser ( string name ) : void

Cache the name of the most recent user

SetWorldId ( int id ) : void

Set the id of the most recently used world

Method Details

GetCharacterClass() public static method

Gets the character class.
public static GetCharacterClass ( ) : Player.CharacterClass
return Player.CharacterClass

GetMasterVolume() public static method

Gets the master volume.
public static GetMasterVolume ( ) : float
return float

GetServerURL() public static method

Get the url of the last server used
public static GetServerURL ( ) : string
return string

GetUserName() public static method

Get the name of the last user to successfully have logged in
public static GetUserName ( ) : string
return string

GetWorldId() public static method

Get the id of the most recently used world
public static GetWorldId ( ) : int
return int

SetCharacterClass() public static method

Sets the character class.
public static SetCharacterClass ( Player, characterClass ) : void
characterClass Player, /// Character class. ///
return void

SetMasterVolume() public static method

Sets the master volume.
public static SetMasterVolume ( float volume ) : void
volume float /// Volume. ///
return void

SetServerURL() public static method

Cache the url of the most recent server accessed
public static SetServerURL ( string url ) : void
url string /// A ///
return void

SetUser() public static method

Cache the name of the most recent user
public static SetUser ( string name ) : void
name string /// A ///
return void

SetWorldId() public static method

Set the id of the most recently used world
public static SetWorldId ( int id ) : void
id int /// A ///
return void

Property Details

defaultServer public_oe static_oe property

The default server.
public static string defaultServer
return string