Add sharedconfig and deprecate more stuff
This commit is contained in:
parent
705c42c287
commit
fdc744f5b3
2
nulllib
2
nulllib
@ -1 +1 @@
|
|||||||
Subproject commit 60b57fd097f2788750e61109a3bbee55e6dccbf2
|
Subproject commit 49e861f3f4c57e353b1976d4e2d7d3ab9a66b31d
|
@ -21,6 +21,7 @@ nmath=require("nulllib.math")
|
|||||||
PartsManager=require("nulllib.PartsManager")
|
PartsManager=require("nulllib.PartsManager")
|
||||||
UVManager=require("nulllib.UVManager")
|
UVManager=require("nulllib.UVManager")
|
||||||
sharedstate=require("nulllib.sharedstate")
|
sharedstate=require("nulllib.sharedstate")
|
||||||
|
sharedconfig=require("nulllib.sharedconfig")
|
||||||
|
|
||||||
-- math functions
|
-- math functions
|
||||||
lerp=math.lerp -- this is implemented in figura now
|
lerp=math.lerp -- this is implemented in figura now
|
||||||
@ -77,7 +78,9 @@ end
|
|||||||
-- so is this
|
-- so is this
|
||||||
-- Master and local state variables -- {{{
|
-- Master and local state variables -- {{{
|
||||||
-- Local State (these are copied by pings at runtime) --
|
-- Local State (these are copied by pings at runtime) --
|
||||||
|
---@deprecated use sharedstate or track internally
|
||||||
local_state={}
|
local_state={}
|
||||||
|
---@deprecated use sharedstate with callbacks or track internally
|
||||||
old_state={}
|
old_state={}
|
||||||
-- master state variables and configuration (do not access within pings) --
|
-- master state variables and configuration (do not access within pings) --
|
||||||
do
|
do
|
||||||
@ -92,6 +95,8 @@ do
|
|||||||
["aquatic_enabled"]=true,
|
["aquatic_enabled"]=true,
|
||||||
["aquatic_override"]=false
|
["aquatic_override"]=false
|
||||||
}
|
}
|
||||||
|
sharedconfig.load_defaults(defaults)
|
||||||
|
|
||||||
---@deprecated use config api (TODO) instead
|
---@deprecated use config api (TODO) instead
|
||||||
function setLocalState()
|
function setLocalState()
|
||||||
if host:isHost() then
|
if host:isHost() then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user