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