pb

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 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 {
	Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty" gorm:"column:type"` // 物品种类
	Id   int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" gorm:"column:id"`       // 物品编号
	Num  int32 `protobuf:"varint,3,opt,name=num,proto3" json:"num,omitempty" gorm:"column:num"`    // 物品数量
	// contains filtered or unexported fields
}

掉落物品

func (*Item) Descriptor deprecated

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetId

func (x *Item) GetId() int32

func (*Item) GetNum

func (x *Item) GetNum() int32

func (*Item) GetType

func (x *Item) GetType() 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 {
	Type int32   `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty" gorm:"column:type"`
	Id   int32   `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" gorm:"column:id"`
	Prob float32 `protobuf:"fixed32,3,opt,name=prob,proto3" json:"prob,omitempty" gorm:"column:prob"`
	Min  int32   `protobuf:"varint,4,opt,name=min,proto3" json:"min,omitempty" gorm:"column:min"`
	Max  int32   `protobuf:"varint,5,opt,name=max,proto3" json:"max,omitempty" gorm:"column:max"`
	// contains filtered or unexported fields
}

逐个百分比掉落表

func (*TablePercent) Descriptor deprecated

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

Deprecated: Use TablePercent.ProtoReflect.Descriptor instead.

func (*TablePercent) GetId

func (x *TablePercent) GetId() int32

func (*TablePercent) GetMax

func (x *TablePercent) GetMax() int32

func (*TablePercent) GetMin

func (x *TablePercent) GetMin() int32

func (*TablePercent) GetProb

func (x *TablePercent) GetProb() float32

func (*TablePercent) GetType

func (x *TablePercent) GetType() int32

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"`                           // 木桶编号
	FallType    int32   `protobuf:"varint,2,opt,name=fall_type,json=fallType,proto3" json:"fall_type,omitempty" gorm:"column:fall_type"`               // 掉落种类
	FallTypeId  int32   `protobuf:"varint,3,opt,name=fall_type_id,json=fallTypeId,proto3" json:"fall_type_id,omitempty" gorm:"column:fall_type_id"`    // 掉落种类编号
	VatNumMin   int32   `protobuf:"varint,4,opt,name=vat_num_min,json=vatNumMin,proto3" json:"vat_num_min,omitempty" gorm:"column:vat_num_min"`        // 最小数量
	VatNumMax   int32   `protobuf:"varint,5,opt,name=vat_num_max,json=vatNumMax,proto3" json:"vat_num_max,omitempty" gorm:"column:vat_num_max"`        // 最大数量
	VatWeight   int32   `protobuf:"varint,6,opt,name=vat_weight,json=vatWeight,proto3" json:"vat_weight,omitempty" gorm:"column:vat_weight"`           // 权重(空缺量*系数加成)
	ExpectNum   int32   `protobuf:"varint,7,opt,name=expect_num,json=expectNum,proto3" json:"expect_num,omitempty" gorm:"column:expect_num"`           // 预期量
	ExistingNum int32   `protobuf:"varint,8,opt,name=existing_num,json=existingNum,proto3" json:"existing_num,omitempty" gorm:"column:existing_num"`   // 现有量
	VacancyNum  int32   `protobuf:"varint,9,opt,name=vacancy_num,json=vacancyNum,proto3" json:"vacancy_num,omitempty" gorm:"column:vacancy_num"`       // 空缺量(预期量-现有量)
	VacancyProb float32 `protobuf:"fixed32,10,opt,name=vacancy_prob,json=vacancyProb,proto3" json:"vacancy_prob,omitempty" gorm:"column:vacancy_prob"` // 空缺率(空缺量/预期量)
	Coefficient int32   `protobuf:"varint,11,opt,name=coefficient,proto3" json:"coefficient,omitempty" gorm:"column: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 `protobuf:"varint,1,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty" gorm:"column:master_id"` // 母集编号
	SubsetId     int32 `protobuf:"varint,2,opt,name=subset_id,json=subsetId,proto3" json:"subset_id,omitempty" gorm:"column:subset_id"` // 子集编号
	NextSubsetId int32 ``                                                                                                               // 进阶子集
	/* 129-byte string literal not displayed */
	NextSubsetMin int32 `` // 最小进阶次数
	/* 133-byte string literal not displayed */
	NextSubsetMax int32 `` // 最大进阶次数
	/* 133-byte string literal not displayed */
	AdvanceNum int32 `protobuf:"varint,6,opt,name=advance_num,json=advanceNum,proto3" json:"advance_num,omitempty" gorm:"column:advance_num"` // 现有进阶次数
	// 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) 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 {
	SubsetId     int32 `protobuf:"varint,1,opt,name=subset_id,json=subsetId,proto3" json:"subset_id,omitempty" gorm:"column:subset_id"`            // 子集编号
	FallType     int32 `protobuf:"varint,2,opt,name=fall_type,json=fallType,proto3" json:"fall_type,omitempty" gorm:"column:fall_type"`            // 掉落种类
	FallTypeId   int32 `protobuf:"varint,3,opt,name=fall_type_id,json=fallTypeId,proto3" json:"fall_type_id,omitempty" gorm:"column:fall_type_id"` // 掉落种类编号
	SubsetNumMin int32 ``                                                                                                                          // 最小数量
	/* 129-byte string literal not displayed */
	SubsetNumMax int32 `` // 最大数量
	/* 129-byte string literal not displayed */
	SubsetWeight int32 `` // 权重
	/* 126-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) 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