Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
params.proto
It has these top-level messages:
Hero Item Player
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hero ¶
type Hero struct { HeroId int32 `protobuf:"varint,1,opt,name=HeroId" json:"HeroId,omitempty"` HeroLife int32 `protobuf:"varint,2,opt,name=HeroLife" json:"HeroLife,omitempty"` }
func (*Hero) Descriptor ¶
func (*Hero) GetHeroLife ¶
func (*Hero) ProtoMessage ¶
func (*Hero) ProtoMessage()
type Item ¶
type Item struct { ItemId int32 `protobuf:"varint,1,opt,name=ItemId" json:"ItemId,omitempty"` ItemNum int32 `protobuf:"varint,2,opt,name=ItemNum" json:"ItemNum,omitempty"` }
func (*Item) Descriptor ¶
func (*Item) GetItemNum ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
type Player ¶
type Player struct { PlayerId int32 `protobuf:"varint,1,opt,name=PlayerId" json:"PlayerId,omitempty"` PlayerHero *Hero `protobuf:"bytes,2,opt,name=PlayerHero" json:"PlayerHero,omitempty"` PlayerItem []*Item `protobuf:"bytes,3,rep,name=PlayerItem" json:"PlayerItem,omitempty"` PlayerGold int32 `protobuf:"varint,4,opt,name=PlayerGold" json:"PlayerGold,omitempty"` }
func (*Player) Descriptor ¶
func (*Player) GetPlayerGold ¶
func (*Player) GetPlayerHero ¶
func (*Player) GetPlayerId ¶
func (*Player) GetPlayerItem ¶
func (*Player) ProtoMessage ¶
func (*Player) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.