1
This commit is contained in:
parent
a9cac80248
commit
8fe90377b7
@ -24,6 +24,13 @@ type hero struct {
|
||||
skinId int32
|
||||
}
|
||||
|
||||
type battleItem struct {
|
||||
itemId int32
|
||||
itemNum int32
|
||||
itemType int32
|
||||
itemSubType int32
|
||||
}
|
||||
|
||||
type player struct {
|
||||
cs.MsgHandlerImpl
|
||||
socket f5.WspCliConn
|
||||
@ -47,6 +54,7 @@ type player struct {
|
||||
vipLv int32
|
||||
vipExp int64
|
||||
hasVipLucky int32
|
||||
battleItems []*battleItem
|
||||
}
|
||||
|
||||
func (this *player) SendMsg(rspMsg proto.Message) {
|
||||
@ -604,5 +612,6 @@ func (this *player) SetBattling(state bool) {
|
||||
|
||||
func newPlayer() *player {
|
||||
hum := new(player)
|
||||
q5.NewSlice(&hum.battleItems, 0, 2)
|
||||
return hum
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user