Expose current login field and password setter

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-05-02 21:57:39 +02:00
committed by Adam
parent 1e83a36c42
commit 2f6679d67a
2 changed files with 22 additions and 0 deletions

View File

@@ -144,6 +144,20 @@ public interface Client extends GameEngine
*/
void setUsername(String name);
/**
* Sets the password on login screen.
*
* @param password the login screen password
*/
void setPassword(String password);
/**
* Gets currently selected login field. 0 is username, and 1 is password.
*
* @return currently selected login field
*/
int getCurrentLoginField();
/**
* Gets the account type of the logged in player.
*

View File

@@ -246,6 +246,14 @@ public interface RSClient extends RSGameEngine, Client
@Override
void setUsername(String username);
@Import("password")
@Override
void setPassword(String password);
@Import("currentLoginField")
@Override
int getCurrentLoginField();
@Import("playerOptions")
@Override
String[] getPlayerOptions();