C# Class GamePrefs, tf_client

A static class that wraps PlayerPrefs calls
Inheritance: System.Object
Afficher le fichier Open project: wids-eria/tf_client Class Usage Examples

Méthodes publiques

Свойство Type Description
defaultServer string

Méthodes publiques

Méthode 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 méthode

Gets the character class.
public static GetCharacterClass ( ) : Player.CharacterClass
Résultat Player.CharacterClass

GetMasterVolume() public static méthode

Gets the master volume.
public static GetMasterVolume ( ) : float
Résultat float

GetServerURL() public static méthode

Get the url of the last server used
public static GetServerURL ( ) : string
Résultat string

GetUserName() public static méthode

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

GetWorldId() public static méthode

Get the id of the most recently used world
public static GetWorldId ( ) : int
Résultat int

SetCharacterClass() public static méthode

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

SetMasterVolume() public static méthode

Sets the master volume.
public static SetMasterVolume ( float volume ) : void
volume float /// Volume. ///
Résultat void

SetServerURL() public static méthode

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

SetUser() public static méthode

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

SetWorldId() public static méthode

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

Property Details

defaultServer public_oe static_oe property

The default server.
public static string defaultServer
Résultat string