From f6bac4f48496a429abbb71cf1c74f009b888887a Mon Sep 17 00:00:00 2001 From: EvilFactory Date: Thu, 19 Oct 2023 16:09:14 -0300 Subject: [PATCH] Added some traitor stuff to Lua register/lib --- Barotrauma/BarotraumaShared/Lua/DefaultLib/LibShared.lua | 4 ++++ .../BarotraumaShared/Lua/DefaultRegister/RegisterShared.lua | 3 +++ 2 files changed, 7 insertions(+) diff --git a/Barotrauma/BarotraumaShared/Lua/DefaultLib/LibShared.lua b/Barotrauma/BarotraumaShared/Lua/DefaultLib/LibShared.lua index d5bacc5335..51f815cd49 100644 --- a/Barotrauma/BarotraumaShared/Lua/DefaultLib/LibShared.lua +++ b/Barotrauma/BarotraumaShared/Lua/DefaultLib/LibShared.lua @@ -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) @@ -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) diff --git a/Barotrauma/BarotraumaShared/Lua/DefaultRegister/RegisterShared.lua b/Barotrauma/BarotraumaShared/Lua/DefaultRegister/RegisterShared.lua index d531e1dc13..64926bebfc 100644 --- a/Barotrauma/BarotraumaShared/Lua/DefaultRegister/RegisterShared.lua +++ b/Barotrauma/BarotraumaShared/Lua/DefaultRegister/RegisterShared.lua @@ -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")