component

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllGameConf

func GetAllGameConf[Val any]() (res []Val)

GetAllGameConf [Val any] @Description: 不建议使用这个函数除非特殊需求,建议使用RangeGameConf

func GetGameConf

func GetGameConf[Val any](id string) (res Val, h bool)

func GetGameConfBySlice

func GetGameConfBySlice[Val any](id string) (res []Val, h bool)

func InitGameConfToMem

func InitGameConfToMem()

func LoadGameConf

func LoadGameConf[Val any]() *hashmap.Map[string, interface{}]

LoadGameConf [Val any]

 泛型传入自动生成的配置即可
	@Description: 预加载

func RangeGameConf

func RangeGameConf[Val any](f func(s string, i Val) bool)

RangeGameConf [Val any] @Description: @param f

func WithConfPath

func WithConfPath(path string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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