Initialization (Init)
AndroidiOSWindows
Deprecated for: LI PASS V1.06.00
If you are using Unreal Engine, see Init for Unreal Engine SDK.
Deprecated for: LI PASS V1.06.00
If you are using Unreal Engine, see Init for Unreal Engine SDK.
It is recommended to initialize LI PASS at game launch.
- LI PASS V1.06 to LI PASS V1.15, you can call
InitLI - LI PASS 1.16 and later versions, you can call
InitLIP
Function Definition
public static void Init(string host, INTLUserData userData, List<Font> fonts, bool isTest);
Input Parameters
| Parameters | Type | Explanation |
|---|---|---|
| host | string | Production Environment URL: https://sg-vas.intlgame.com Test Environment URL: https://test-vas.intlgame.com |
| userData | INTLUserData | This rule must be consistent with the rule configured by the Player Network console to obtain the correct resources For more information, see UserData. |
| fonts | List<Font> | Font set used by LI PASS UI |
| isTest | bool | Does not affect the LI PASS environment; the game doesn't need to worry, just pass false |
note
If you are using a font not provided by LI PASS, please send the font to the Player Network assistant.
User Data Structure
| Parameters | Type | Explanation |
|---|---|---|
| gameId | int | Actual Game ID |
| channelId | string | LI PASS Channel ID 131 |
| openId | string | OpenID, hardcoded as FFFFFFFFFFFFFF |
| langType | string | Language type affecting multilingual user interface display, pass as needed. |
| region | string | ISO 3166-1 numeric code for country or region For example, 156 represents China, and 040 represents Austria |
| appVersion | string | Game version number |
There are no special requirements for other parameters; pass values when available.
Code sample
List<Font> fonts = GetFont();
INTLUserData userData = GetUserData();
string host="https://test-vas.intlgame.com";
LevelInfinite.Init(host, userData, fonts, false);