Auxiliary System

The auxiliary system of SGAgent provides following methods.

Get current implementation of game server
SGGameServerInterface getGameServer()
Get name of operation
String getOpName(int op)
Get name of state type
String getStateTypeName(int type)
Get name of specified state-change reason
String getStateChangeReasonName(int reason)
Get name of specified state-change
String getStateName(int type, int state)
Specify implementation of game server
void setGameServer(SGGameServerInterface gs)
Remote logging
boolean log(int action, String key, int value, String message)
Start process to retrieve value of remote log item
boolean getLogValue(String key, int defaultValue)
Run extended method
String runExtMethod(String cmdLine)
Start game
boolean startGame()
Stop game
boolean stopGame()
Share screen shot
boolean shareScreen(String imageFile, String title, String content)
Notify result of function request
void notifyFuncRequestResult(String func, String id, String result);

Please refer to SGAgent Document for details.