1 package net.sz.game.login.logins.iscript; net.sz.framework.nio.http.NioHttpRequest; 4 import net.sz.framework.scripts.IBaseScript; * 8 * <br> 9 * author 失足程序员<br> <br> 11 * mail 492794628@qq.com<br> 12 * phone 13882122019<br> ILoginScriptPlatform extends IBaseScript { * 处理登录 平台登录 18 * platform 平台ID channelId 渠道ID request 请求 login(int platform, int channelId, NioHttpRequest request); 25 }
View Code
最终本地登录脚本接口设计
1 package net.sz.game.login.logins.iscript; net.sz.framework.nio.http.NioHttpRequest; 4 import net.sz.framework.scripts.IBaseScript; * 8 * <br> 9 * author 失足程序员<br> <br> 11 * mail 492794628@qq.com<br> 12 * phone 13882122019<br> ILoginScript extends IBaseScript { * 返回错误码 18 * code msg String getErrorCode(int code, int msg); * 最终登录 27 * username userpwd platform channelId request _login(String username, String userpwd, int platform, int channelId, NioHttpRequest request); 35 36 }
View Code
最终登录脚本需要反向引用,不能通过脚本调用