Skip to content

Variable

moxcomic edited this page Aug 23, 2023 · 3 revisions

In scripts, the entire object will be released at the end of each call, so this method must be used for persistent storage, or you can use your own method, such as saving to a file, etc.

Import

github.com/moxcomic/Archer/variable

func Inst() *Variable
func (self *Variable) GetVar(name string) any
func (self *Variable) GetBool(name string) bool
func (self *Variable) GetString(name string) string
func (self *Variable) GetInt(name string) int
func (self *Variable) GetFloat64(name string) float64
func (self *Variable) GetByte(name string) []byte
func (self *Variable) SetVar(name string, value any)
func (self *Variable) DeleteVar(name string)
Clone this wiki locally