ET框架TulipBubble实现逻辑
- 登录注册逻辑
- UI有关脚本
UIEventType.cs
TulipLobbyFactory.cs
TulipLobbyComponent.cs
- 网络
有关脚本
前端
TulipHelper.cs
后端
Realm
A0002_LoginHandler.cs
A0001_RegisterHandler.cs
Gate
A0006_GetLoginKey.cs
A0003_LoginGateHandler.cs
A0002_LoginHandler.cs:接收C登录请求{account,password}
判断账号密码是否合法
如果合法发给G{UserId}请求Key
回复C{GateIP,Key}
接收R{UserID}
利用UserID在SeesionKeyComponent中绑定UserId和Key
回复R{Key}
接收C注册请求{account,password}
判断账号是否合法
如果合法将AccountInfo和UserInfo保存到数据库
回复C{注册成功}
接收C登录请求{key}
验证Key合法性
如果合法将UserId和Key解绑
使用UserId创建User
添加User到UserComponent
Session添加SessionUserComponent 绑定Seession和User
Session添加MailBoxComponent 通过MailBox进行actor通信
设置User的参数GateAppID,GateSessionID,ActorID
回复C{UserID}
- UI有关脚本
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Exiaozhang`s Blog!
评论
ValineUtterances