Add sharedconfig and deprecate more stuff

This commit is contained in:
NullBite 2023-06-23 02:25:23 -04:00
parent 705c42c287
commit fdc744f5b3
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
2 changed files with 6 additions and 1 deletions

@ -1 +1 @@
Subproject commit 60b57fd097f2788750e61109a3bbee55e6dccbf2
Subproject commit 49e861f3f4c57e353b1976d4e2d7d3ab9a66b31d

View File

@ -21,6 +21,7 @@ nmath=require("nulllib.math")
PartsManager=require("nulllib.PartsManager")
UVManager=require("nulllib.UVManager")
sharedstate=require("nulllib.sharedstate")
sharedconfig=require("nulllib.sharedconfig")
-- math functions
lerp=math.lerp -- this is implemented in figura now
@ -77,7 +78,9 @@ end
-- so is this
-- Master and local state variables -- {{{
-- Local State (these are copied by pings at runtime) --
---@deprecated use sharedstate or track internally
local_state={}
---@deprecated use sharedstate with callbacks or track internally
old_state={}
-- master state variables and configuration (do not access within pings) --
do
@ -92,6 +95,8 @@ do
["aquatic_enabled"]=true,
["aquatic_override"]=false
}
sharedconfig.load_defaults(defaults)
---@deprecated use config api (TODO) instead
function setLocalState()
if host:isHost() then