类 InputCommand
java.lang.Object
com.iohao.game.external.client.command.InputCommand
模拟命令
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
-
构造器概要
-
方法概要
修饰符和类型方法说明callback
(CallbackDelegate callback) setRequestData
(RequestDataDelegate requestData) toString()