Skip to content

Commit

Permalink
Added some traitor stuff to Lua register/lib
Browse files Browse the repository at this point in the history
  • Loading branch information
evilfactory committed Oct 19, 2023
1 parent b5d89c8 commit f6bac4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Barotrauma/BarotraumaShared/Lua/DefaultLib/LibShared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ defaultLib["VoteType"] = CreateEnum("Barotrauma.Networking.VoteType")
defaultLib["InputType"] = CreateStatic("Barotrauma.InputType")

defaultLib["EventPrefab"] = CreateStatic("Barotrauma.EventPrefab", true)
defaultLib["TraitorEventPrefab"] = CreateStatic("Barotrauma.TraitorEventPrefab", true)
defaultLib["TraitorEvent"] = CreateStatic("Barotrauma.TraitorEvent", true)
defaultLib["EventSet"] = CreateStatic("Barotrauma.EventSet", true)
defaultLib["EventManagerSettings"] = CreateStatic("Barotrauma.EventManagerSettings", true)

Expand Down Expand Up @@ -113,6 +115,8 @@ defaultLib["PropertyConditional"] = CreateStatic("Barotrauma.PropertyConditional
defaultLib["StatusEffect"] = CreateStatic("Barotrauma.StatusEffect", true)
defaultLib["OutpostGenerator"] = CreateStatic("Barotrauma.OutpostGenerator")
defaultLib["DamageModifier"] = CreateStatic("Barotrauma.DamageModifier", true)
defaultLib["TraitorManager"] = CreateStatic("Barotrauma.TraitorManager", true)
AddCallMetaTable(defaultLib["TraitorManager"].TraitorResults)

defaultLib["Md5Hash"] = CreateStatic("Barotrauma.Md5Hash", true)
defaultLib["ContentXElement"] = CreateStatic("Barotrauma.ContentXElement", true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ RegisterBarotrauma("SkillPrefab")
RegisterBarotrauma("SkillSettings")

RegisterBarotrauma("TraitorManager")
RegisterBarotrauma("TraitorEvent")
RegisterBarotrauma("TraitorEventPrefab")
RegisterBarotrauma("TraitorManager+TraitorResults")

Register("FarseerPhysics.Dynamics.Body")
Register("FarseerPhysics.Dynamics.World")
Expand Down

0 comments on commit f6bac4f

Please sign in to comment.