paramconv

package
v0.0.0-...-d7572e3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Type2ConvFn = map[string]func(valStr string, dstValue interface{}) error{
	"float":               SetFloat,
	"int":                 SetInt,
	"bool":                SetBool,
	"string":              SetString,
	"FieldObjActType":     SetFieldObjActType,
	"FieldObjDisplayType": SetFieldObjDisplayType,
	"TileType":            SetTileType,
	"TileFlag":            SetTileFlag,
	"ResourceType":        SetResourceType,
	"DecayType":           SetDecayType,
}

Functions

func SetBool

func SetBool(valStr string, dstValue interface{}) error

func SetDecayType

func SetDecayType(valStr string, dstValue interface{}) error

func SetFieldObjActType

func SetFieldObjActType(valStr string, dstValue interface{}) error

func SetFieldObjDisplayType

func SetFieldObjDisplayType(valStr string, dstValue interface{}) error

func SetFloat

func SetFloat(valStr string, dstValue interface{}) error

func SetInt

func SetInt(valStr string, dstValue interface{}) error

func SetResourceType

func SetResourceType(valStr string, dstValue interface{}) error

func SetString

func SetString(valStr string, dstValue interface{}) error

func SetTileFlag

func SetTileFlag(valStr string, dstValue interface{}) error

func SetTileType

func SetTileType(valStr string, dstValue interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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