添加了节点服务器,各个服务器之间支持多对多

This commit is contained in:
flswld
2022-12-24 04:14:33 +08:00
parent 16dd9c1e87
commit 7e86669628
92 changed files with 1429 additions and 287 deletions

View File

@@ -1,7 +1,7 @@
package model
import (
"hk4e/gs/constant"
"hk4e/common/constant"
)
type Item struct {

View File

@@ -3,8 +3,8 @@ package model
import (
"time"
"hk4e/common/constant"
gdc "hk4e/gs/config"
"hk4e/gs/constant"
"hk4e/pkg/logger"
)

View File

@@ -71,6 +71,8 @@ type Player struct {
ClientSeq uint32 `bson:"-" msgpack:"-"` // 客户端发包请求的序号
CombatInvokeHandler *InvokeHandler[proto.CombatInvokeEntry] `bson:"-" msgpack:"-"` // combat转发器
AbilityInvokeHandler *InvokeHandler[proto.AbilityInvokeEntry] `bson:"-" msgpack:"-"` // ability转发器
GateAppId string `bson:"-" msgpack:"-"` // 网关服务器的appid
FightAppId string `bson:"-" msgpack:"-"` // 战斗服务器的appid
}
func (p *Player) GetNextGameObjectGuid() uint64 {

View File

@@ -1,7 +1,7 @@
package model
import (
"hk4e/gs/constant"
"hk4e/common/constant"
"hk4e/protocol/proto"
)

View File

@@ -1,8 +1,8 @@
package model
import (
"hk4e/common/constant"
gdc "hk4e/gs/config"
"hk4e/gs/constant"
)
type Team struct {