config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

This file is auto-generated by Tabugen v0.10.0, DO NOT EDIT!

This file is auto-generated by Tabular, DO NOT EDIT!

This file is auto-generated by Tabugen v0.10.0, DO NOT EDIT!

This file is auto-generated by Tabugen v0.10.0, DO NOT EDIT!

This file is auto-generated by Tabugen v0.10.0, DO NOT EDIT!

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadCSVRecords

func ReadCSVRecords(data []byte) ([]map[string]string, error)

ReadCSVRecords read CSV data to key-value record list

func RecordsToKVMap

func RecordsToKVMap(records []map[string]string) map[string]string

RecordsToKVMap parse records to key-value string map

Types

type BoxProbabilityDefine

type BoxProbabilityDefine struct {
	ID               string // ID
	Total            int    // 奖励总数
	Time             int    // 冷却时间
	Repeat           bool   // 是否可重复
	ProbabilityGoods []ProbabilityGoodsDefine
}

随机宝箱.xlsx

func (*BoxProbabilityDefine) ParseFrom

func (p *BoxProbabilityDefine) ParseFrom(record map[string]string) error

type GlobalPropertyDefine

type GlobalPropertyDefine struct {
	GoldExchangeTimeFactor1    float64        // 金币兑换时间参数1
	GoldExchangeTimeFactor2    float64        // 金币兑换时间参数2
	GoldExchangeTimeFactor3    float64        // 金币兑换时间参数3
	GoldExchangeResource1Price uint16         // 金币兑换资源1价格
	GoldExchangeResource2Price uint16         // 金币兑换资源2价格
	GoldExchangeResource3Price uint16         // 金币兑换资源3价格
	GoldExchangeResource4Price uint16         // 金币兑换资源4价格
	FreeCompleteSeconds        uint16         // 免费立即完成时间
	CancelBuildReturnPercent   uint16         // 取消建造后返还资源比例
	EnableSearch               bool           // 开启搜索
	SpawnLevelLimit            []int          // 最大刷新个数显示
	FirstRechargeReward        map[string]int // 首充奖励
	VIPItemReward              map[int]int    // VIP奖励
}

全局变量表.xlsx

func (*GlobalPropertyDefine) ParseFrom

func (p *GlobalPropertyDefine) ParseFrom(fields map[string]string) error

type IParseableConfig

type IParseableConfig interface {
	ParseFromRow(row []string) error
}

type NewbieGuideDefine

type NewbieGuideDefine struct {
	Name           string            // ID
	Type           string            // 任务类型
	Target         string            // 目标
	Accomplishment []int16           // 完成步骤
	Goods          map[string]uint32 // 物品
}

新手任务.xlsx

func (*NewbieGuideDefine) ParseFrom

func (p *NewbieGuideDefine) ParseFrom(record map[string]string) error

type ProbabilityGoodsDefine

type ProbabilityGoodsDefine struct {
	GoodsID     string // 物品id
	Num         uint32 // 物品数量
	Probability uint32 // 物品概率
}

type SoldierPropertyDefine

type SoldierPropertyDefine struct {
	Name               string  // 士兵ID
	Level              int     // 士兵等级
	NameID             string  // 名字
	BuildingName       string  // 所属建筑
	BuildingLevel      uint32  // 建筑等级
	RequireSpace       uint32  // 登陆艇占用空间
	Volume             uint32  // 体积
	UpgradeTime        uint32  // 升级消耗的时间(秒)
	UpgradeMaterialID  string  // 升级消耗的材料
	UpgradeMaterialNum int64   // 升级消耗的数量
	ConsumeMaterial    string  // 生产消耗的材料
	ConsumeMaterialNum int     // 生产消耗的数量
	ConsumeTime        int     // 生产消耗的时间(秒/个)
	Act                int     // 攻击
	Hp                 int     // 血量
	BombLoad           int16   // 载弹量
	Hurt               uint32  // buff伤害
	Duration           float64 // 持续时间
	TriggerInterval    float64 // 触发间隔
	SearchScope        int16   // 搜索范围
	AtkFrequency       float64 // 攻击间隔
	AtkRange           float64 // 攻击距离
	MovingSpeed        float64 // 移动速度
	EnableBurn         bool    // 燃烧特效
}

兵种.xlsx

func (*SoldierPropertyDefine) ParseFrom

func (p *SoldierPropertyDefine) ParseFrom(record map[string]string) error

Jump to

Keyboard shortcuts

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