Init
AndroidiOSWindows
Deprecated since: LI PASS V1.06.00
If you were looking for the method for use with Unreal Engine, see Init for Unreal Engine SDK.
Deprecated since: LI PASS V1.06.00
If you were looking for the method for use with Unreal Engine, see Init for Unreal Engine SDK.
It is recommended to initialize LI PASS when starting the game.
- For LI PASS V1.06 to LI PASS V1.15, see
InitLI
. - For LI PASS V1.16 and above, see
InitLIP
.
Function definition
public static void Init(string host, INTLUserData userData, List<Font> fonts, bool isTest);
Input parameters
Parameter | Type | Description |
---|---|---|
host | string | Production environment URL: https://sg-vas.intlgame.com Test environment URL: https://test-vas.intlgame.com |
userData | INTLUserData | The rule must be consistent with the rule configured on Player Network Console to get the correct resources For more information, see UserData. |
fonts | List<Font> | The font set LI PASS UI will be using |
isTest | bool | It doesn't affect the LI PASS environment, and the game doesn't need to worry about it. Just pass false |
note
To use font that is not provided with LI PASS, please send the font to the Player Network representative.
UserData structure
ption | ||
---|---|---|
gameId | int | Actual Game ID |
channelId | string | LI PASS channel ID 131 |
openId | string | OpenID Hardcode it to FFFFFFFFFFFFFF |
langType | string | Language type which affects multi-language UI display, pass as required |
region | string | ISO 3166-1 numeric code for country or region For example 156 for China, 040 for Austria |
appVersion | string | Game version |
Other parameters do not have special requests, pass the value when available.
Code sample
List<Font> fonts = GetFont();
INTLUserData userData = GetUserData();
string host="https://test-vas.intlgame.com";
LevelInfinite.Init(host, userData, fonts, false);