类 InputCommand

java.lang.Object
com.iohao.game.external.client.command.InputCommand

public class InputCommand extends Object
模拟命令 example:

         ofCommand(DemoCmd.here).setTitle("here").setRequestData(() -> {
             YourMsg msg = ...
             return msg;
         }).callback(result -> {
              HelloReq value = result.getValue(HelloReq.class);
              log.info("value : {}", value);
          });

         ofCommand(DemoCmd.list).setTitle("list").callback(result -> {
             // 得到 list 数据
             List<HelloReq> list = result.listValue(HelloReq.class);
             log.info("list : {}", list);
         });
 
 
作者:
渔民小镇
日期:
2023-07-08