Documentation
¶
Index ¶
- Variables
- type Item
- type TablePercent
- func (*TablePercent) Descriptor() ([]byte, []int)deprecated
- func (x *TablePercent) GetId() int32
- func (x *TablePercent) GetMax() int32
- func (x *TablePercent) GetMin() int32
- func (x *TablePercent) GetProb() float32
- func (x *TablePercent) GetType() int32
- func (*TablePercent) ProtoMessage()
- func (x *TablePercent) ProtoReflect() protoreflect.Message
- func (x *TablePercent) Reset()
- func (x *TablePercent) String() string
- type TableVat
- func (*TableVat) Descriptor() ([]byte, []int)deprecated
- func (x *TableVat) GetCoefficient() int32
- func (x *TableVat) GetExistingNum() int32
- func (x *TableVat) GetExpectNum() int32
- func (x *TableVat) GetFallType() int32
- func (x *TableVat) GetFallTypeId() int32
- func (x *TableVat) GetVacancyNum() int32
- func (x *TableVat) GetVacancyProb() float32
- func (x *TableVat) GetVatId() int32
- func (x *TableVat) GetVatNumMax() int32
- func (x *TableVat) GetVatNumMin() int32
- func (x *TableVat) GetVatWeight() int32
- func (*TableVat) ProtoMessage()
- func (x *TableVat) ProtoReflect() protoreflect.Message
- func (x *TableVat) Reset()
- func (x *TableVat) String() string
- type TableWeightGroupMaster
- func (*TableWeightGroupMaster) Descriptor() ([]byte, []int)deprecated
- func (x *TableWeightGroupMaster) GetAdvanceNum() int32
- func (x *TableWeightGroupMaster) GetMasterId() int32
- func (x *TableWeightGroupMaster) GetNextSubsetId() int32
- func (x *TableWeightGroupMaster) GetNextSubsetMax() int32
- func (x *TableWeightGroupMaster) GetNextSubsetMin() int32
- func (x *TableWeightGroupMaster) GetSubsetId() int32
- func (*TableWeightGroupMaster) ProtoMessage()
- func (x *TableWeightGroupMaster) ProtoReflect() protoreflect.Message
- func (x *TableWeightGroupMaster) Reset()
- func (x *TableWeightGroupMaster) String() string
- type TableWeightGroupSubset
- func (*TableWeightGroupSubset) Descriptor() ([]byte, []int)deprecated
- func (x *TableWeightGroupSubset) GetFallType() int32
- func (x *TableWeightGroupSubset) GetFallTypeId() int32
- func (x *TableWeightGroupSubset) GetSubsetId() int32
- func (x *TableWeightGroupSubset) GetSubsetNumMax() int32
- func (x *TableWeightGroupSubset) GetSubsetNumMin() int32
- func (x *TableWeightGroupSubset) GetSubsetWeight() int32
- func (*TableWeightGroupSubset) ProtoMessage()
- func (x *TableWeightGroupSubset) ProtoReflect() protoreflect.Message
- func (x *TableWeightGroupSubset) Reset()
- func (x *TableWeightGroupSubset) String() string
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) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶
func (x *Item) ProtoReflect() protoreflect.Message
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) GetCoefficient ¶
func (*TableVat) GetExistingNum ¶
func (*TableVat) GetExpectNum ¶
func (*TableVat) GetFallType ¶
func (*TableVat) GetFallTypeId ¶
func (*TableVat) GetVacancyNum ¶
func (*TableVat) GetVacancyProb ¶
func (*TableVat) GetVatNumMax ¶
func (*TableVat) GetVatNumMin ¶
func (*TableVat) GetVatWeight ¶
func (*TableVat) ProtoMessage ¶
func (*TableVat) ProtoMessage()
func (*TableVat) ProtoReflect ¶
func (x *TableVat) ProtoReflect() protoreflect.Message
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
Click to show internal directories.
Click to hide internal directories.