C# Класс Grabacr07.KanColleWrapper.Updater

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetOnlineVersion ( TranslationType Type, bool bGetURL = false ) : string

Uses the downloaded Version XML document to return a specific version number as a string.

IsOnlineVersionGreater ( TranslationType Type, string LocalVersionString ) : bool

Conditional function to determine whether the supplied version is greater than the one found online.

LoadVersion ( string UpdateURL ) : bool

Loads the version XML file from a remote URL. This houses all current online version info.

UpdateTranslations ( string BaseTranslationURL, string Culture, Translations TranslationsRef ) : int

Updates any translation files that differ from that found online.

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

GetOnlineVersion() публичный Метод

Uses the downloaded Version XML document to return a specific version number as a string.
public GetOnlineVersion ( TranslationType Type, bool bGetURL = false ) : string
Type TranslationType Translation file type. Can also be for the App itself.
bGetURL bool If true, returns the URL of the online file instead of the version.
Результат string

IsOnlineVersionGreater() публичный Метод

Conditional function to determine whether the supplied version is greater than the one found online.
public IsOnlineVersionGreater ( TranslationType Type, string LocalVersionString ) : bool
Type TranslationType Translation file type. Can also be for the App itself.
LocalVersionString string Version string of the local file to check against
Результат bool

LoadVersion() публичный Метод

Loads the version XML file from a remote URL. This houses all current online version info.
public LoadVersion ( string UpdateURL ) : bool
UpdateURL string String URL to the version XML file.
Результат bool

UpdateTranslations() публичный Метод

Updates any translation files that differ from that found online.
public UpdateTranslations ( string BaseTranslationURL, string Culture, Translations TranslationsRef ) : int
BaseTranslationURL string String URL folder that contains all the translation XML files.
Culture string Language version to download
TranslationsRef Translations Link to the translation engine to obtain current translation versions.
Результат int