feat(entity): 新增游戏核心实体类(Client/Server/Player)并调整.gitignore

This commit is contained in:
1
2025-06-22 00:52:02 +00:00
parent 8c9fbbb3a8
commit ef65de818b
4 changed files with 379 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
package entity
type ClientData struct {
IsCrossDomain bool //是否跨域过
player *player //客户实体
}
func NewClientData() *ClientData {
cd := &ClientData{
IsCrossDomain: false,
player: nil,
}
return cd
}