shop

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ShopType_name = map[int32]string{
		0:   "Min",
		1:   "NpcShop",
		2:   "DressShop",
		3:   "HouseShop",
		4:   "HomeShop",
		5:   "AnimalShop",
		6:   "PublicMall",
		7:   "Activity",
		8:   "PackageShop",
		9:   "FurnitureShop",
		100: "Max",
	}
	ShopType_value = map[string]int32{
		"Min":           0,
		"NpcShop":       1,
		"DressShop":     2,
		"HouseShop":     3,
		"HomeShop":      4,
		"AnimalShop":    5,
		"PublicMall":    6,
		"Activity":      7,
		"PackageShop":   8,
		"FurnitureShop": 9,
		"Max":           100,
	}
)

Enum value maps for ShopType.

Functions

This section is empty.

Types

type NpcShopData

type NpcShopData struct {
	NpcType    uint32   `protobuf:"varint,1,opt,name=npcType,proto3" json:"npcType,omitempty"`                      // npc类型
	NpcID      uint64   `protobuf:"varint,2,opt,name=npcID,proto3" json:"npcID,omitempty"`                          // npc唯一ID
	ShopType   ShopType `protobuf:"varint,3,opt,name=shopType,proto3,enum=shop.ShopType" json:"shopType,omitempty"` // 商店类型
	PositionID uint32   `protobuf:"varint,4,opt,name=positionID,proto3" json:"positionID,omitempty"`                // 位置ID
	ShopID     []uint32 `protobuf:"varint,5,rep,packed,name=shopID,proto3" json:"shopID,omitempty"`                 // 商品ID 复数
	AppearTM   int64    `protobuf:"varint,6,opt,name=appearTM,proto3" json:"appearTM,omitempty"`                    // 出现日期(当天的起始时间)
	// contains filtered or unexported fields
}

func (*NpcShopData) Descriptor deprecated

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

Deprecated: Use NpcShopData.ProtoReflect.Descriptor instead.

func (*NpcShopData) GetAppearTM

func (x *NpcShopData) GetAppearTM() int64

func (*NpcShopData) GetNpcID

func (x *NpcShopData) GetNpcID() uint64

func (*NpcShopData) GetNpcType

func (x *NpcShopData) GetNpcType() uint32

func (*NpcShopData) GetPositionID

func (x *NpcShopData) GetPositionID() uint32

func (*NpcShopData) GetShopID

func (x *NpcShopData) GetShopID() []uint32

func (*NpcShopData) GetShopType

func (x *NpcShopData) GetShopType() ShopType

func (*NpcShopData) ProtoMessage

func (*NpcShopData) ProtoMessage()

func (*NpcShopData) ProtoReflect

func (x *NpcShopData) ProtoReflect() protoreflect.Message

func (*NpcShopData) Reset

func (x *NpcShopData) Reset()

func (*NpcShopData) String

func (x *NpcShopData) String() string

func (*NpcShopData) Validate

func (m *NpcShopData) Validate() error

Validate checks the field values on NpcShopData with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type NpcShopDataValidationError

type NpcShopDataValidationError struct {
	// contains filtered or unexported fields
}

NpcShopDataValidationError is the validation error returned by NpcShopData.Validate if the designated constraints aren't met.

func (NpcShopDataValidationError) Cause

Cause function returns cause value.

func (NpcShopDataValidationError) Error

Error satisfies the builtin error interface

func (NpcShopDataValidationError) ErrorName

func (e NpcShopDataValidationError) ErrorName() string

ErrorName returns error name.

func (NpcShopDataValidationError) Field

Field function returns field value.

func (NpcShopDataValidationError) Key

Key function returns key value.

func (NpcShopDataValidationError) Reason

Reason function returns reason value.

type ShopType

type ShopType int32
const (
	ShopType_Min           ShopType = 0
	ShopType_NpcShop       ShopType = 1
	ShopType_DressShop     ShopType = 2
	ShopType_HouseShop     ShopType = 3
	ShopType_HomeShop      ShopType = 4
	ShopType_AnimalShop    ShopType = 5
	ShopType_PublicMall    ShopType = 6
	ShopType_Activity      ShopType = 7
	ShopType_PackageShop   ShopType = 8 // 礼包
	ShopType_FurnitureShop ShopType = 9 // 家具
	ShopType_Max           ShopType = 100
)

func (ShopType) Descriptor

func (ShopType) Descriptor() protoreflect.EnumDescriptor

func (ShopType) Enum

func (x ShopType) Enum() *ShopType

func (ShopType) EnumDescriptor deprecated

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

Deprecated: Use ShopType.Descriptor instead.

func (ShopType) Number

func (x ShopType) Number() protoreflect.EnumNumber

func (ShopType) String

func (x ShopType) String() string

func (ShopType) Type

Jump to

Keyboard shortcuts

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