Client FakeAccount API Reference
Purpose: All methods of this class just help you log in quickly, and experience the functions of PGOS SDK.
API List
| API | Description |
|---|---|
| Login | Log in with the specified account. The FAS account does not need to be registered in advance, it can be any string without line breaks ('\r', '\n') and is managed by the game. |
| AutoLogin | Log in with a local historical account (if there is no historical account, one will be created automatically). |
| CurLoginedUserInfo | Get the simulated account being logged in |
API Details
Login
Log in with the specified account. The FAS account does not need to be registered in advance, it can be any string without line breaks ('\r', '\n') and is managed by the game.
/// <summary>
/// Log in with the specified account.
/// The FAS account does not need to be registered in advance, it can be any string without line breaks ('\r', '\n') and is managed by the game.
/// </summary>
/// <param name="account">FAS account, if the account is empty, then will use a local historical account.</param>
public void Login(string account, FakeAccountDelegate0 callback);
Parameters:
| Param | Type | Description |
|---|---|---|
| account | string | FAS account, if the account is empty, then will use a local historical account. |
| callback | FakeAccountDelegate0 |
Return: void
AutoLogin
Log in with a local historical account (if there is no historical account, one will be created automatically).
/// <summary>Log in with a local historical account (if there is no historical account, one will be created automatically).</summary>
public void AutoLogin(FakeAccountDelegate0 callback);
Parameters:
| Param | Type | Description |
|---|---|---|
| callback | FakeAccountDelegate0 |
Return: void
CurLoginedUserInfo
Get the simulated account being logged in
/// <summary>Get the simulated account being logged in</summary>
public FasLoginInfo CurLoginedUserInfo();
Parameters:
(No parameters)
Return: FasLoginInfo
The data of the simulated account
All Delegates
public delegate void FakeAccountDelegate0(PgosResult a0, FasLoginInfo a1);
Type Reference: