lib, lang, engine: local: Add Value mechanisms to local API

This expands the Local API with the first (and in theory, only ever) API
for reading and writing simple values. This is a coordination point for
resources and functions to share things directly.
This commit is contained in:
James Shubin
2023-12-03 15:36:03 -05:00
parent 3e37a60635
commit c05af3b9b3
5 changed files with 345 additions and 15 deletions

View File

@@ -243,7 +243,7 @@ func (obj *Lang) Init() error {
Local: obj.Local,
World: obj.World,
//Prefix: fmt.Sprintf("%s/", path.Join(obj.Prefix, "funcs")),
Debug: obj.Debug,
Debug: obj.Debug,
Logf: func(format string, v ...interface{}) {
obj.Logf("funcs: "+format, v...)
},