Minor refactor for LuaUserData.lua

This commit is contained in:
Evil Factory
2022-06-14 13:09:52 -03:00
parent 438f10f484
commit efd1243754
11 changed files with 91 additions and 60 deletions
@@ -1,5 +1,5 @@
local Register = LuaSetup.Register
local RegisterBarotrauma = LuaSetup.RegisterBarotrauma
local Register = LuaSetup.LuaUserData.RegisterType
local RegisterBarotrauma = LuaSetup.LuaUserData.RegisterTypeBarotrauma
Register("System.TimeSpan")
Register("System.Exception")
@@ -8,6 +8,9 @@ RegisterBarotrauma("LuaByte")
RegisterBarotrauma("LuaUShort")
RegisterBarotrauma("LuaFloat")
RegisterBarotrauma("Range`1[System.Single]")
RegisterBarotrauma("Range`1[System.Int32]")
RegisterBarotrauma("Level+InterestingPosition")
RegisterBarotrauma("RichString")
@@ -245,6 +248,8 @@ RegisterBarotrauma("Decal")
RegisterBarotrauma("DecalPrefab")
RegisterBarotrauma("DecalManager")
RegisterBarotrauma("PriceInfo")
Register("Microsoft.Xna.Framework.Vector2")
Register("Microsoft.Xna.Framework.Vector3")
Register("Microsoft.Xna.Framework.Vector4")