public void SendMovement(int userID, float[] target) { NewTransferObject to = transferObjectFactory.createNewTransferObject(); to.setCalleeMethod(ExecuteClientCallMethodName); to.putString("receiveMovement"); //callee method to.putInt(userID); to.putFloatArray(target); to.registerReturnType(TransferObject.DATATYPE_VOID); ServerExecutor.execute(to); }
public void EnterLobby(int userID, string userName, int userLevel, int equipedWeaponTypeId, float[] position) { NewTransferObject to = transferObjectFactory.createNewTransferObject(); to.setCalleeMethod(ExecuteClientCallMethodName); to.putString("enterLobby"); //callee method to.putInt(userID); to.putString(userName); to.putInt(userLevel); to.putInt(equipedWeaponTypeId); to.putFloatArray(position); to.registerReturnType(TransferObject.DATATYPE_VOID); ServerExecutor.execute(to); }