pb

package
v0.0.0-...-f10d331 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 3 Imported by: 0

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) Descriptor() ([]byte, []int)

func (*Hero) GetHeroId

func (m *Hero) GetHeroId() int32

func (*Hero) GetHeroLife

func (m *Hero) GetHeroLife() int32

func (*Hero) ProtoMessage

func (*Hero) ProtoMessage()

func (*Hero) Reset

func (m *Hero) Reset()

func (*Hero) String

func (m *Hero) String() string

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) Descriptor() ([]byte, []int)

func (*Item) GetItemId

func (m *Item) GetItemId() int32

func (*Item) GetItemNum

func (m *Item) GetItemNum() int32

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) Reset

func (m *Item) Reset()

func (*Item) String

func (m *Item) String() string

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) Descriptor() ([]byte, []int)

func (*Player) GetPlayerGold

func (m *Player) GetPlayerGold() int32

func (*Player) GetPlayerHero

func (m *Player) GetPlayerHero() *Hero

func (*Player) GetPlayerId

func (m *Player) GetPlayerId() int32

func (*Player) GetPlayerItem

func (m *Player) GetPlayerItem() []*Item

func (*Player) ProtoMessage

func (*Player) ProtoMessage()

func (*Player) Reset

func (m *Player) Reset()

func (*Player) String

func (m *Player) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL