feat(entity): 新增游戏核心实体类(Client/Server/Player)并调整.gitignore
This commit is contained in:
15
common/data/entity/Client.go
Normal file
15
common/data/entity/Client.go
Normal 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
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user