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:

MapItem
MapEvent

Index

Constants

This section is empty.

Variables

View Source
var EnumAllowingAlias_name = map[int32]string{
	0: "UNKNOWN",
	1: "STARTED",
}
View Source
var EnumAllowingAlias_value = map[string]int32{
	"UNKNOWN": 0,
	"STARTED": 1,
	"RUNNING": 1,
}
View Source
var MapEvent_MapEventType_name = map[int32]string{
	0: "EVERY_HOUR",
	1: "EVERY_DAY",
	2: "EVERY_WEEK",
	3: "EVERY_MONTH",
	4: "EVERY_SEASON",
}
View Source
var MapEvent_MapEventType_value = map[string]int32{
	"EVERY_HOUR":   0,
	"EVERY_DAY":    1,
	"EVERY_WEEK":   2,
	"EVERY_MONTH":  3,
	"EVERY_SEASON": 4,
}
View Source
var MapItemType_name = map[int32]string{
	0: "BUILDING",
	1: "MONSTER",
	2: "RESOURCE",
	3: "SHOP",
	4: "FARM",
}
View Source
var MapItemType_value = map[string]int32{
	"BUILDING": 0,
	"MONSTER":  1,
	"RESOURCE": 2,
	"SHOP":     3,
	"FARM":     4,
}

Functions

This section is empty.

Types

type EnumAllowingAlias

type EnumAllowingAlias int32

用allow_alias参数可以重复值

const (
	EnumAllowingAlias_UNKNOWN EnumAllowingAlias = 0
	EnumAllowingAlias_STARTED EnumAllowingAlias = 1
	EnumAllowingAlias_RUNNING EnumAllowingAlias = 1
)

func (EnumAllowingAlias) EnumDescriptor

func (EnumAllowingAlias) EnumDescriptor() ([]byte, []int)

func (EnumAllowingAlias) String

func (x EnumAllowingAlias) String() string

type MapEvent

type MapEvent struct {
	MapEventId int32                 `protobuf:"varint,1,opt,name=MapEventId" json:"MapEventId,omitempty"`
	EventType  MapEvent_MapEventType `protobuf:"varint,2,opt,name=EventType,enum=pb.MapEvent_MapEventType" json:"EventType,omitempty"`
}

func (*MapEvent) Descriptor

func (*MapEvent) Descriptor() ([]byte, []int)

func (*MapEvent) GetEventType

func (m *MapEvent) GetEventType() MapEvent_MapEventType

func (*MapEvent) GetMapEventId

func (m *MapEvent) GetMapEventId() int32

func (*MapEvent) ProtoMessage

func (*MapEvent) ProtoMessage()

func (*MapEvent) Reset

func (m *MapEvent) Reset()

func (*MapEvent) String

func (m *MapEvent) String() string

type MapEvent_MapEventType

type MapEvent_MapEventType int32
const (
	MapEvent_EVERY_HOUR   MapEvent_MapEventType = 0
	MapEvent_EVERY_DAY    MapEvent_MapEventType = 1
	MapEvent_EVERY_WEEK   MapEvent_MapEventType = 2
	MapEvent_EVERY_MONTH  MapEvent_MapEventType = 3
	MapEvent_EVERY_SEASON MapEvent_MapEventType = 4
)

func (MapEvent_MapEventType) EnumDescriptor

func (MapEvent_MapEventType) EnumDescriptor() ([]byte, []int)

func (MapEvent_MapEventType) String

func (x MapEvent_MapEventType) String() string

type MapItem

type MapItem struct {
	MapItemId   int32       `protobuf:"varint,1,opt,name=MapItemId" json:"MapItemId,omitempty"`
	MapItemType MapItemType `protobuf:"varint,2,opt,name=MapItemType,enum=pb.MapItemType" json:"MapItemType,omitempty"`
}

func (*MapItem) Descriptor

func (*MapItem) Descriptor() ([]byte, []int)

func (*MapItem) GetMapItemId

func (m *MapItem) GetMapItemId() int32

func (*MapItem) GetMapItemType

func (m *MapItem) GetMapItemType() MapItemType

func (*MapItem) ProtoMessage

func (*MapItem) ProtoMessage()

func (*MapItem) Reset

func (m *MapItem) Reset()

func (*MapItem) String

func (m *MapItem) String() string

type MapItemType

type MapItemType int32
const (
	MapItemType_BUILDING MapItemType = 0
	MapItemType_MONSTER  MapItemType = 1
	MapItemType_RESOURCE MapItemType = 2
	MapItemType_SHOP     MapItemType = 3
	MapItemType_FARM     MapItemType = 4
)

func (MapItemType) EnumDescriptor

func (MapItemType) EnumDescriptor() ([]byte, []int)

func (MapItemType) String

func (x MapItemType) String() string

Jump to

Keyboard shortcuts

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