C# Класс GamePrefs, tf_client

A static class that wraps PlayerPrefs calls
Наследование: System.Object
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
defaultServer string

Открытые методы

Метод Описание
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

Описание методов

GetCharacterClass() публичный статический Метод

Gets the character class.
public static GetCharacterClass ( ) : Player.CharacterClass
Результат Player.CharacterClass

GetMasterVolume() публичный статический Метод

Gets the master volume.
public static GetMasterVolume ( ) : float
Результат float

GetServerURL() публичный статический Метод

Get the url of the last server used
public static GetServerURL ( ) : string
Результат string

GetUserName() публичный статический Метод

Get the name of the last user to successfully have logged in
public static GetUserName ( ) : string
Результат string

GetWorldId() публичный статический Метод

Get the id of the most recently used world
public static GetWorldId ( ) : int
Результат int

SetCharacterClass() публичный статический Метод

Sets the character class.
public static SetCharacterClass ( Player, characterClass ) : void
characterClass Player, /// Character class. ///
Результат void

SetMasterVolume() публичный статический Метод

Sets the master volume.
public static SetMasterVolume ( float volume ) : void
volume float /// Volume. ///
Результат void

SetServerURL() публичный статический Метод

Cache the url of the most recent server accessed
public static SetServerURL ( string url ) : void
url string /// A ///
Результат void

SetUser() публичный статический Метод

Cache the name of the most recent user
public static SetUser ( string name ) : void
name string /// A ///
Результат void

SetWorldId() публичный статический Метод

Set the id of the most recently used world
public static SetWorldId ( int id ) : void
id int /// A ///
Результат void

Описание свойств

defaultServer публичное статическое свойство

The default server.
public static string defaultServer
Результат string