configs

package
v0.0.0-...-4675295 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigDict

type ConfigDict struct {
	dictx.IDictionary[string, *ConfigTreeItem]
}

func NewConfigDict

func NewConfigDict() (obj *ConfigDict)

func (*ConfigDict) Filter默认的

func (set *ConfigDict) Filter默认的()

type ConfigRepo

type ConfigRepo struct {
	*ConfigDict
	// contains filtered or unexported fields
}

func NewConfigRepo

func NewConfigRepo() (obj *ConfigRepo)

func (*ConfigRepo) DictBy分类

func (set *ConfigRepo) DictBy分类(分类 string) *ConfigDict

func (*ConfigRepo) DictBy功能

func (set *ConfigRepo) DictBy功能(功能 string) *ConfigDict

func (*ConfigRepo) DictBy文件

func (set *ConfigRepo) DictBy文件(文件 string) *ConfigDict

func (*ConfigRepo) DictBy目录

func (set *ConfigRepo) DictBy目录(目录 string) (result *ConfigDict)

func (*ConfigRepo) DictBy类型

func (set *ConfigRepo) DictBy类型(类型 string) *ConfigDict

func (*ConfigRepo) GetBy编号

func (set *ConfigRepo) GetBy编号(编号 string) *ConfigTreeItem

func (*ConfigRepo) IndexTree

func (set *ConfigRepo) IndexTree() *treex.TreeRoot

func (*ConfigRepo) Load

func (set *ConfigRepo) Load(files map[string]datax.M)

func (*ConfigRepo) ResetIndexTree

func (set *ConfigRepo) ResetIndexTree() *treex.TreeRoot

重置并返回index_tree

type ConfigTreeItem

type ConfigTreeItem struct {

	/**
	 * 由类型和类型编号组成
	 * 格式为:分类编号@分类
	 */
	B编号 string

	F父编号  string
	M命令空间 string

	/**
	 * 配置所在的文件路径
	 */
	W文件 string
	/**
	 * 配置的分类
	 * 例如单位,技能,掉落
	 */
	F分类 string

	/**
	 * 配置的对象类型
	 * 例如技能-攻击,技能-移动,技能-效果
	 */
	L类型 string

	M名称 string

	B编辑器前缀 string

	B编辑器后缀 string

	M默认 bool
	D导出 bool
	// contains filtered or unexported fields
}

func NewTreeItem

func NewTreeItem(编号 string, 类型 string) *ConfigTreeItem

func NewTreeItemByConf

func NewTreeItemByConf(编号 string, conf datax.M) *ConfigTreeItem

func (*ConfigTreeItem) GetClassIdent

func (c *ConfigTreeItem) GetClassIdent() string

func (*ConfigTreeItem) GetSchema

func (c *ConfigTreeItem) GetSchema() *schemax.ClassDecl

func (*ConfigTreeItem) Get数据

func (c *ConfigTreeItem) Get数据() map[string]interface{}

func (*ConfigTreeItem) Inherit

func (c *ConfigTreeItem) Inherit(新的编号 string) *ConfigTreeItem

继承

func (*ConfigTreeItem) Set数据

func (c *ConfigTreeItem) Set数据(val map[string]interface{})

func (*ConfigTreeItem) ToMap

func (c *ConfigTreeItem) ToMap() map[string]interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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