All descriptors are now accessible via a global table, for easier access
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
local defaultLib = {}
|
||||
|
||||
require("DefaultRegister")
|
||||
local descriptors = require("DefaultRegister")
|
||||
|
||||
local CreateStatic = function (typeName, addCallMethod)
|
||||
local staticUserdata = LuaUserData.CreateStatic(typeName)
|
||||
@@ -16,6 +16,8 @@ local CreateStatic = function (typeName, addCallMethod)
|
||||
return staticUserdata
|
||||
end
|
||||
|
||||
defaultLib["Descriptors"] = descriptors
|
||||
|
||||
defaultLib["Byte"] = CreateStatic("Barotrauma.LuaByte", true)
|
||||
defaultLib["UShort"] = CreateStatic("Barotrauma.LuaUShort", true)
|
||||
defaultLib["Float"] = CreateStatic("Barotrauma.LuaFloat", true)
|
||||
|
||||
Reference in New Issue
Block a user