refactor: 优化RPC对战加入与
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-03-12 14:35:27 +08:00
committed by cnb
parent 7720138290
commit af09d1ae86
4 changed files with 27 additions and 38 deletions

View File

@@ -52,6 +52,7 @@ type Fightinfo struct {
FightType uint32
}
type RPCFightinfo struct {
Type int
PlayerID uint32
// 战斗模式 1 = 1v1 2 = 6v6 3大乱斗 0 什么都不做
Mode uint32
@@ -60,6 +61,15 @@ type RPCFightinfo struct {
Status uint32
// FightType uint32
}
type RPCFightStartinfo struct {
Servierid int // 非0表示rpc跨服
PlayerID uint32
// 战斗模式 1 = 1v1 2 = 6v6 3大乱斗 0 什么都不做
Mode uint32
//Type uint32 //战斗类型
Status uint32
}
// FightPetInfo 战斗精灵信息结构体FightPetInfo类
type FightPetInfo struct {

View File

@@ -93,6 +93,7 @@ type Player struct {
MainConn gnet.Conn
baseplayer
IsLogin bool //是否登录
IsJoin bool //是否加入RPC对局 用重连函数写临时缓存join重连后统一join
Done
MapNPC *time.Timer