Documentation ¶
Index ¶
- Variables
- type NpcShopData
- func (*NpcShopData) Descriptor() ([]byte, []int)deprecated
- func (x *NpcShopData) GetAppearTM() int64
- func (x *NpcShopData) GetNpcID() uint64
- func (x *NpcShopData) GetNpcType() uint32
- func (x *NpcShopData) GetPositionID() uint32
- func (x *NpcShopData) GetShopID() []uint32
- func (x *NpcShopData) GetShopType() ShopType
- func (*NpcShopData) ProtoMessage()
- func (x *NpcShopData) ProtoReflect() protoreflect.Message
- func (x *NpcShopData) Reset()
- func (x *NpcShopData) String() string
- func (m *NpcShopData) Validate() error
- type NpcShopDataValidationError
- func (e NpcShopDataValidationError) Cause() error
- func (e NpcShopDataValidationError) Error() string
- func (e NpcShopDataValidationError) ErrorName() string
- func (e NpcShopDataValidationError) Field() string
- func (e NpcShopDataValidationError) Key() bool
- func (e NpcShopDataValidationError) Reason() string
- type ShopType
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.
View Source
var File_shop_proto protoreflect.FileDescriptor
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 ¶
func (e NpcShopDataValidationError) Cause() error
Cause function returns cause value.
func (NpcShopDataValidationError) Error ¶
func (e NpcShopDataValidationError) Error() string
Error satisfies the builtin error interface
func (NpcShopDataValidationError) ErrorName ¶
func (e NpcShopDataValidationError) ErrorName() string
ErrorName returns error name.
func (NpcShopDataValidationError) Field ¶
func (e NpcShopDataValidationError) Field() string
Field function returns field value.
func (NpcShopDataValidationError) Key ¶
func (e NpcShopDataValidationError) Key() bool
Key function returns key value.
func (NpcShopDataValidationError) Reason ¶
func (e NpcShopDataValidationError) Reason() string
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) EnumDescriptor
deprecated
func (ShopType) Number ¶
func (x ShopType) Number() protoreflect.EnumNumber
func (ShopType) Type ¶
func (ShopType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.