config

package
v0.0.0-...-1213768 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type B3File

type B3File struct {
	Name string     `json:"name"`
	Data BH3Project `json:"data"`
}

B3File 是behavior3编辑器保存的.b3格式的配置文件

func LoadB3File

func LoadB3File(path string) (*B3File, error)

func ParseB3File

func ParseB3File(data []byte) (*B3File, error)

ParseB3File parse project from []byte

type BH3Node

type BH3Node struct {
	ID          string   `json:"id"`
	Name        string   `json:"name"`
	Category    string   `json:"category"`
	Title       string   `json:"title"`
	Description string   `json:"description"`
	Children    []string `json:"children"`
	Child       string   `json:"child"`
	// Parameters  map[string]interface{} `json:"parameters"`
	Properties map[string]interface{} `json:"properties"`
}

BH3Node behavior3的节点

func (*BH3Node) GetBool

func (node *BH3Node) GetBool(name string) bool

func (*BH3Node) GetFloat64

func (node *BH3Node) GetFloat64(name string) float64

func (*BH3Node) GetInt

func (node *BH3Node) GetInt(name string) int

func (*BH3Node) GetInt32

func (node *BH3Node) GetInt32(name string) int32

func (*BH3Node) GetInt32s

func (node *BH3Node) GetInt32s(name string) []int32

func (*BH3Node) GetInt64

func (node *BH3Node) GetInt64(name string) int64

func (*BH3Node) GetInt64s

func (node *BH3Node) GetInt64s(name string) []int64

func (*BH3Node) GetString

func (node *BH3Node) GetString(name string) string

func (*BH3Node) GetUint32

func (node *BH3Node) GetUint32(name string) uint32

func (*BH3Node) GetUint64

func (node *BH3Node) GetUint64(name string) uint64

type BH3Project

type BH3Project struct {
	SelectedTree string     `json:"selectedTree"`
	Scope        string     `json:"scope"`
	Trees        []*BH3Tree `json:"trees"`
}

BH3Project behavior3的工程json类型

type BH3Tree

type BH3Tree struct {
	ID          string                 `json:"id"`
	Title       string                 `json:"title"`
	Description string                 `json:"description"`
	Root        string                 `json:"root"`
	Properties  map[string]interface{} `json:"properties"`
	Nodes       map[string]*BH3Node    `json:"nodes"`
}

BH3Tree behavior3树

Jump to

Keyboard shortcuts

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