pb

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pb_item_proto protoreflect.FileDescriptor
View Source
var File_pb_table_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Item

type Item struct {
	AutoId    int32 `protobuf:"varint,1,opt,name=auto_id,json=autoId,proto3" json:"auto_id,omitempty" gorm:"column:auto_id" redis:"auto_id"` // 物品编号
	Type      int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty" gorm:"column:type" redis:"type"`                         // 物品种类
	Id        int32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty" gorm:"column:id" redis:"id"`                                 // 物品编号
	Num       int32 `protobuf:"varint,4,opt,name=num,proto3" json:"num,omitempty" gorm:"column:num" redis:"num"`                             // 物品数量
	StarLevel int32 ``                                                                                                                       // 物品星级
	/* 133-byte string literal not displayed */
	Weight int32 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty" gorm:"column:weight" redis:"weight"` // 物品权重
	// contains filtered or unexported fields
}

掉落物品

func (*Item) Descriptor deprecated

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetAutoId added in v1.0.11

func (x *Item) GetAutoId() int32

func (*Item) GetId

func (x *Item) GetId() int32

func (*Item) GetNum

func (x *Item) GetNum() int32

func (*Item) GetStarLevel added in v1.1.1

func (x *Item) GetStarLevel() int32

func (*Item) GetType

func (x *Item) GetType() int32

func (*Item) GetWeight added in v1.0.10

func (x *Item) GetWeight() int32

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

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

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

type TablePercent

type TablePercent struct {
	AutoId   int32 `protobuf:"varint,1,opt,name=auto_id,json=autoId,proto3" json:"auto_id,omitempty" gorm:"column:auto_id" redis:"auto_id"` // 自动编号
	FallType int32 ``                                                                                                                       // 掉落种类
	/* 128-byte string literal not displayed */
	FallTypeId int32 `` // 掉落种类编号
	/* 142-byte string literal not displayed */
	Prob   float32 `protobuf:"fixed32,4,opt,name=prob,proto3" json:"prob,omitempty" gorm:"column:prob" redis:"prob"`                        // 概率浮点数
	NumMin int32   `protobuf:"varint,5,opt,name=num_min,json=numMin,proto3" json:"num_min,omitempty" gorm:"column:num_min" redis:"num_min"` // 最小数量
	NumMax int32   `protobuf:"varint,6,opt,name=num_max,json=numMax,proto3" json:"num_max,omitempty" gorm:"column:num_max" redis:"num_max"` // 最大数量
	// contains filtered or unexported fields
}

逐个百分比掉落表

func (*TablePercent) Descriptor deprecated

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

Deprecated: Use TablePercent.ProtoReflect.Descriptor instead.

func (*TablePercent) GetAutoId added in v1.0.12

func (x *TablePercent) GetAutoId() int32

func (*TablePercent) GetFallType added in v1.0.12

func (x *TablePercent) GetFallType() int32

func (*TablePercent) GetFallTypeId added in v1.0.12

func (x *TablePercent) GetFallTypeId() int32

func (*TablePercent) GetNumMax added in v1.0.12

func (x *TablePercent) GetNumMax() int32

func (*TablePercent) GetNumMin added in v1.0.12

func (x *TablePercent) GetNumMin() int32

func (*TablePercent) GetProb

func (x *TablePercent) GetProb() float32

func (*TablePercent) ProtoMessage

func (*TablePercent) ProtoMessage()

func (*TablePercent) ProtoReflect

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

func (*TablePercent) Reset

func (x *TablePercent) Reset()

func (*TablePercent) String

func (x *TablePercent) String() string

type TableVat

type TableVat struct {
	VatId    int32 `protobuf:"varint,1,opt,name=vat_id,json=vatId,proto3" json:"vat_id,omitempty" gorm:"column:vat_id" redis:"vat_id"` // 木桶编号
	FallType int32 ``                                                                                                                  // 掉落种类
	/* 128-byte string literal not displayed */
	FallTypeId int32 `` // 掉落种类编号
	/* 142-byte string literal not displayed */
	VatNumMin int32 `` // 最小数量
	/* 137-byte string literal not displayed */
	VatNumMax int32 `` // 最大数量
	/* 137-byte string literal not displayed */
	VatWeight int32 `` // 权重(空缺量*系数加成)
	/* 133-byte string literal not displayed */
	ExpectNum int32 `` // 预期量
	/* 133-byte string literal not displayed */
	ExistingNum int32 `` // 现有量
	/* 143-byte string literal not displayed */
	VacancyNum int32 `` // 空缺量(预期量-现有量)
	/* 138-byte string literal not displayed */
	VacancyProb float32 `` // 空缺率(空缺量/预期量)
	/* 145-byte string literal not displayed */
	Coefficient int32 `protobuf:"varint,11,opt,name=coefficient,proto3" json:"coefficient,omitempty" gorm:"column:coefficient" redis:"coefficient"` // 系数加成(4=空缺率>=90%,2=空缺率>=70% AND 空缺率<90%,DEFAULT 1)
	// contains filtered or unexported fields
}

木桶原理掉落表

func (*TableVat) Descriptor deprecated

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

Deprecated: Use TableVat.ProtoReflect.Descriptor instead.

func (*TableVat) GetCoefficient

func (x *TableVat) GetCoefficient() int32

func (*TableVat) GetExistingNum

func (x *TableVat) GetExistingNum() int32

func (*TableVat) GetExpectNum

func (x *TableVat) GetExpectNum() int32

func (*TableVat) GetFallType

func (x *TableVat) GetFallType() int32

func (*TableVat) GetFallTypeId

func (x *TableVat) GetFallTypeId() int32

func (*TableVat) GetVacancyNum

func (x *TableVat) GetVacancyNum() int32

func (*TableVat) GetVacancyProb

func (x *TableVat) GetVacancyProb() float32

func (*TableVat) GetVatId

func (x *TableVat) GetVatId() int32

func (*TableVat) GetVatNumMax

func (x *TableVat) GetVatNumMax() int32

func (*TableVat) GetVatNumMin

func (x *TableVat) GetVatNumMin() int32

func (*TableVat) GetVatWeight

func (x *TableVat) GetVatWeight() int32

func (*TableVat) ProtoMessage

func (*TableVat) ProtoMessage()

func (*TableVat) ProtoReflect

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

func (*TableVat) Reset

func (x *TableVat) Reset()

func (*TableVat) String

func (x *TableVat) String() string

type TableWeightGroupMaster

type TableWeightGroupMaster struct {
	MasterId int32 `` // 母集编号
	/* 128-byte string literal not displayed */
	SubsetId int32 `` // 子集编号
	/* 128-byte string literal not displayed */
	IsNextSubset bool `` // 是进阶子集?
	/* 152-byte string literal not displayed */
	NextSubsetId int32 `` // 进阶子集
	/* 152-byte string literal not displayed */
	NextSubsetMin int32 `` // 最小进阶次数
	/* 157-byte string literal not displayed */
	NextSubsetMax int32 `` // 最大进阶次数
	/* 157-byte string literal not displayed */
	AdvanceNum int32 `` // 现有进阶次数
	/* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

权重掉落组式掉落母集进阶掉落表

func (*TableWeightGroupMaster) Descriptor deprecated

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

Deprecated: Use TableWeightGroupMaster.ProtoReflect.Descriptor instead.

func (*TableWeightGroupMaster) GetAdvanceNum

func (x *TableWeightGroupMaster) GetAdvanceNum() int32

func (*TableWeightGroupMaster) GetIsNextSubset added in v1.0.8

func (x *TableWeightGroupMaster) GetIsNextSubset() bool

func (*TableWeightGroupMaster) GetMasterId

func (x *TableWeightGroupMaster) GetMasterId() int32

func (*TableWeightGroupMaster) GetNextSubsetId

func (x *TableWeightGroupMaster) GetNextSubsetId() int32

func (*TableWeightGroupMaster) GetNextSubsetMax

func (x *TableWeightGroupMaster) GetNextSubsetMax() int32

func (*TableWeightGroupMaster) GetNextSubsetMin

func (x *TableWeightGroupMaster) GetNextSubsetMin() int32

func (*TableWeightGroupMaster) GetSubsetId

func (x *TableWeightGroupMaster) GetSubsetId() int32

func (*TableWeightGroupMaster) ProtoMessage

func (*TableWeightGroupMaster) ProtoMessage()

func (*TableWeightGroupMaster) ProtoReflect

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

func (*TableWeightGroupMaster) Reset

func (x *TableWeightGroupMaster) Reset()

func (*TableWeightGroupMaster) String

func (x *TableWeightGroupMaster) String() string

type TableWeightGroupSubset

type TableWeightGroupSubset struct {
	AutoId   int32 `protobuf:"varint,1,opt,name=auto_id,json=autoId,proto3" json:"auto_id,omitempty" gorm:"column:auto_id" redis:"auto_id"` // 自动编号
	SubsetId int32 ``                                                                                                                       // 子集编号
	/* 128-byte string literal not displayed */
	FallType int32 `` // 掉落种类
	/* 128-byte string literal not displayed */
	FallTypeId int32 `` // 掉落种类编号
	/* 142-byte string literal not displayed */
	FallStarLevel int32 `` // 掉落星级
	/* 157-byte string literal not displayed */
	SubsetNumMin int32 `` // 最小数量
	/* 152-byte string literal not displayed */
	SubsetNumMax int32 `` // 最大数量
	/* 152-byte string literal not displayed */
	SubsetWeight int32 `` // 权重
	/* 148-byte string literal not displayed */
	// contains filtered or unexported fields
}

权重掉落组式掉落子集表

func (*TableWeightGroupSubset) Descriptor deprecated

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

Deprecated: Use TableWeightGroupSubset.ProtoReflect.Descriptor instead.

func (*TableWeightGroupSubset) GetAutoId added in v1.0.11

func (x *TableWeightGroupSubset) GetAutoId() int32

func (*TableWeightGroupSubset) GetFallStarLevel added in v1.1.1

func (x *TableWeightGroupSubset) GetFallStarLevel() int32

func (*TableWeightGroupSubset) GetFallType

func (x *TableWeightGroupSubset) GetFallType() int32

func (*TableWeightGroupSubset) GetFallTypeId

func (x *TableWeightGroupSubset) GetFallTypeId() int32

func (*TableWeightGroupSubset) GetSubsetId

func (x *TableWeightGroupSubset) GetSubsetId() int32

func (*TableWeightGroupSubset) GetSubsetNumMax

func (x *TableWeightGroupSubset) GetSubsetNumMax() int32

func (*TableWeightGroupSubset) GetSubsetNumMin

func (x *TableWeightGroupSubset) GetSubsetNumMin() int32

func (*TableWeightGroupSubset) GetSubsetWeight

func (x *TableWeightGroupSubset) GetSubsetWeight() int32

func (*TableWeightGroupSubset) ProtoMessage

func (*TableWeightGroupSubset) ProtoMessage()

func (*TableWeightGroupSubset) ProtoReflect

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

func (*TableWeightGroupSubset) Reset

func (x *TableWeightGroupSubset) Reset()

func (*TableWeightGroupSubset) String

func (x *TableWeightGroupSubset) String() string

Jump to

Keyboard shortcuts

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