Expose loginIndex and otp fields from runescape client
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -151,6 +151,13 @@ public interface Client extends GameEngine
|
|||||||
*/
|
*/
|
||||||
void setPassword(String password);
|
void setPassword(String password);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the 6 digit pin used for authenticator on login screen.
|
||||||
|
*
|
||||||
|
* @param otp one time password
|
||||||
|
*/
|
||||||
|
void setOtp(String otp);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets currently selected login field. 0 is username, and 1 is password.
|
* Gets currently selected login field. 0 is username, and 1 is password.
|
||||||
*
|
*
|
||||||
@@ -158,6 +165,13 @@ public interface Client extends GameEngine
|
|||||||
*/
|
*/
|
||||||
int getCurrentLoginField();
|
int getCurrentLoginField();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets index of current login state. 2 is username/password form, 4 is authenticator form
|
||||||
|
*
|
||||||
|
* @return current login state index
|
||||||
|
*/
|
||||||
|
int getLoginIndex();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the account type of the logged in player.
|
* Gets the account type of the logged in player.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -248,10 +248,18 @@ public interface RSClient extends RSGameEngine, Client
|
|||||||
@Override
|
@Override
|
||||||
void setPassword(String password);
|
void setPassword(String password);
|
||||||
|
|
||||||
|
@Import("otp")
|
||||||
|
@Override
|
||||||
|
void setOtp(String otp);
|
||||||
|
|
||||||
@Import("currentLoginField")
|
@Import("currentLoginField")
|
||||||
@Override
|
@Override
|
||||||
int getCurrentLoginField();
|
int getCurrentLoginField();
|
||||||
|
|
||||||
|
@Import("loginIndex")
|
||||||
|
@Override
|
||||||
|
int getLoginIndex();
|
||||||
|
|
||||||
@Import("playerOptions")
|
@Import("playerOptions")
|
||||||
@Override
|
@Override
|
||||||
String[] getPlayerOptions();
|
String[] getPlayerOptions();
|
||||||
|
|||||||
Reference in New Issue
Block a user