Expose loginIndex and otp fields from runescape client

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2019-06-02 03:05:14 +02:00
parent 82711a6d35
commit 706fdf5844
2 changed files with 22 additions and 0 deletions

View File

@@ -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.
* *

View File

@@ -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();