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);
/**
* 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.
*
@@ -158,6 +165,13 @@ public interface Client extends GameEngine
*/
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.
*