Skip to content

Commit

Permalink
Added IReadMessage and IWriteMessage plus some enums to the documenta…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
evilfactory committed Apr 20, 2024
1 parent fb725f9 commit 38f8e26
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 24 deletions.
8 changes: 8 additions & 0 deletions luacs-docs/lua/baseluadocs/IReadMessage.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- luacheck: ignore 111

--[[--
Barotrauma.Networking.IReadMessage
]]
-- @code IReadMessage
-- @pragma nostrip
local IReadMessage = {}
8 changes: 8 additions & 0 deletions luacs-docs/lua/baseluadocs/IWriteMessage.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- luacheck: ignore 111

--[[--
Barotrauma.Networking.IWriteMessage
]]
-- @code IWriteMessage
-- @pragma nostrip
local IWriteMessage = {}
38 changes: 14 additions & 24 deletions luacs-docs/lua/scripts/LuaDocsGenerator/LuaDocsGenerator.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LinuxServer", "..\..\..\..\
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LuaDocsGenerator", "LuaDocsGenerator.csproj", "{6E36A474-29B7-4F0C-96CE-79F11BF6C0A4}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BarotraumaCore", "..\..\..\..\Libraries\BarotraumaLibs\BarotraumaCore\BarotraumaCore.csproj", "{4F493ED0-CC77-4151-AFBC-A12340B352B7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -56,30 +58,6 @@ Global
{562EDFE0-7AEB-4F1E-BC26-148DF42F4186}.Unstable|Any CPU.Build.0 = Unstable|Any CPU
{562EDFE0-7AEB-4F1E-BC26-148DF42F4186}.Unstable|x64.ActiveCfg = Unstable|x64
{562EDFE0-7AEB-4F1E-BC26-148DF42F4186}.Unstable|x64.Build.0 = Unstable|x64
{FDB16AC2-7947-4DCC-A46F-E9D1B05C0A1E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FDB16AC2-7947-4DCC-A46F-E9D1B05C0A1E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FDB16AC2-7947-4DCC-A46F-E9D1B05C0A1E}.Debug|x64.ActiveCfg = Debug|Any CPU
{FDB16AC2-7947-4DCC-A46F-E9D1B05C0A1E}.Debug|x64.Build.0 = Debug|Any CPU
{FDB16AC2-7947-4DCC-A46F-E9D1B05C0A1E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FDB16AC2-7947-4DCC-A46F-E9D1B05C0A1E}.Release|Any CPU.Build.0 = Release|Any CPU
{FDB16AC2-7947-4DCC-A46F-E9D1B05C0A1E}.Release|x64.ActiveCfg = Release|Any CPU
{FDB16AC2-7947-4DCC-A46F-E9D1B05C0A1E}.Release|x64.Build.0 = Release|Any CPU
{FDB16AC2-7947-4DCC-A46F-E9D1B05C0A1E}.Unstable|Any CPU.ActiveCfg = Debug|Any CPU
{FDB16AC2-7947-4DCC-A46F-E9D1B05C0A1E}.Unstable|Any CPU.Build.0 = Debug|Any CPU
{FDB16AC2-7947-4DCC-A46F-E9D1B05C0A1E}.Unstable|x64.ActiveCfg = Debug|Any CPU
{FDB16AC2-7947-4DCC-A46F-E9D1B05C0A1E}.Unstable|x64.Build.0 = Debug|Any CPU
{49C8C464-A381-4FDD-AB52-80BB9FE35DDB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{49C8C464-A381-4FDD-AB52-80BB9FE35DDB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{49C8C464-A381-4FDD-AB52-80BB9FE35DDB}.Debug|x64.ActiveCfg = Debug|Any CPU
{49C8C464-A381-4FDD-AB52-80BB9FE35DDB}.Debug|x64.Build.0 = Debug|Any CPU
{49C8C464-A381-4FDD-AB52-80BB9FE35DDB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{49C8C464-A381-4FDD-AB52-80BB9FE35DDB}.Release|Any CPU.Build.0 = Release|Any CPU
{49C8C464-A381-4FDD-AB52-80BB9FE35DDB}.Release|x64.ActiveCfg = Release|Any CPU
{49C8C464-A381-4FDD-AB52-80BB9FE35DDB}.Release|x64.Build.0 = Release|Any CPU
{49C8C464-A381-4FDD-AB52-80BB9FE35DDB}.Unstable|Any CPU.ActiveCfg = Debug|Any CPU
{49C8C464-A381-4FDD-AB52-80BB9FE35DDB}.Unstable|Any CPU.Build.0 = Debug|Any CPU
{49C8C464-A381-4FDD-AB52-80BB9FE35DDB}.Unstable|x64.ActiveCfg = Debug|Any CPU
{49C8C464-A381-4FDD-AB52-80BB9FE35DDB}.Unstable|x64.Build.0 = Debug|Any CPU
{6E36A474-29B7-4F0C-96CE-79F11BF6C0A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6E36A474-29B7-4F0C-96CE-79F11BF6C0A4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6E36A474-29B7-4F0C-96CE-79F11BF6C0A4}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand All @@ -92,6 +70,18 @@ Global
{6E36A474-29B7-4F0C-96CE-79F11BF6C0A4}.Unstable|Any CPU.Build.0 = Debug|Any CPU
{6E36A474-29B7-4F0C-96CE-79F11BF6C0A4}.Unstable|x64.ActiveCfg = Debug|Any CPU
{6E36A474-29B7-4F0C-96CE-79F11BF6C0A4}.Unstable|x64.Build.0 = Debug|Any CPU
{4F493ED0-CC77-4151-AFBC-A12340B352B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4F493ED0-CC77-4151-AFBC-A12340B352B7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4F493ED0-CC77-4151-AFBC-A12340B352B7}.Debug|x64.ActiveCfg = Debug|Any CPU
{4F493ED0-CC77-4151-AFBC-A12340B352B7}.Debug|x64.Build.0 = Debug|Any CPU
{4F493ED0-CC77-4151-AFBC-A12340B352B7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4F493ED0-CC77-4151-AFBC-A12340B352B7}.Release|Any CPU.Build.0 = Release|Any CPU
{4F493ED0-CC77-4151-AFBC-A12340B352B7}.Release|x64.ActiveCfg = Release|Any CPU
{4F493ED0-CC77-4151-AFBC-A12340B352B7}.Release|x64.Build.0 = Release|Any CPU
{4F493ED0-CC77-4151-AFBC-A12340B352B7}.Unstable|Any CPU.ActiveCfg = Debug|Any CPU
{4F493ED0-CC77-4151-AFBC-A12340B352B7}.Unstable|Any CPU.Build.0 = Debug|Any CPU
{4F493ED0-CC77-4151-AFBC-A12340B352B7}.Unstable|x64.ActiveCfg = Debug|Any CPU
{4F493ED0-CC77-4151-AFBC-A12340B352B7}.Unstable|x64.Build.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
12 changes: 12 additions & 0 deletions luacs-docs/lua/scripts/LuaDocsGenerator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ static void Main(string[] args)
GenerateDocs<BarotraumaClient::Barotrauma.PhysicsBody, BarotraumaServer::Barotrauma.PhysicsBody>("PhysicsBody.lua");
GenerateDocs<BarotraumaClient::Barotrauma.Limb, BarotraumaServer::Barotrauma.Limb>("Limb.lua");
GenerateDocs<BarotraumaClient::Barotrauma.PlayerInput>("PlayerInput.lua", "PlayerInput", "client");
GenerateDocs<BarotraumaClient::Barotrauma.Networking.IReadMessage, BarotraumaServer::Barotrauma.Networking.IReadMessage>("IReadMessage.lua");
GenerateDocs<BarotraumaClient::Barotrauma.Networking.IWriteMessage, BarotraumaServer::Barotrauma.Networking.IWriteMessage>("IWriteMessage.lua");

GenerateEnum<BarotraumaClient.Barotrauma.CauseOfDeathType>("CauseOfDeathType.lua");
GenerateEnum<BarotraumaClient.Barotrauma.CharacterTeamType>("CharacterTeamType.lua");
Expand All @@ -99,6 +101,16 @@ static void Main(string[] args)
GenerateEnum<BarotraumaClient.Barotrauma.Networking.ServerLog.MessageType>("ServerLogMessageType.lua");
GenerateEnum<BarotraumaClient.Barotrauma.SpawnType>("SpawnType.lua");
GenerateEnum<BarotraumaClient.Barotrauma.Networking.DisconnectReason>("DisconnectReason.lua");
GenerateEnum<BarotraumaClient.Barotrauma.ActionType>("ActionType.lua");
GenerateEnum<BarotraumaClient.Barotrauma.StatTypes>("StatTypes.lua");
GenerateEnum<BarotraumaClient.Barotrauma.ChatMode>("ChatMode.lua");
GenerateEnum<BarotraumaClient.Barotrauma.CharacterType>("CharacterType.lua");
GenerateEnum<BarotraumaClient.Barotrauma.InputType>("InputType.lua");
GenerateEnum<Barotrauma.Networking.DeliveryMethod>("DeliveryMethod.lua");
GenerateEnum<BarotraumaClient.Barotrauma.NumberType>("NumberType.lua");
GenerateEnum<BarotraumaClient.Barotrauma.GameDifficulty>("GameDifficulty.lua");
GenerateEnum<BarotraumaClient.Barotrauma.Level.PositionType>("PositionType.lua");
GenerateEnum<BarotraumaClient.Barotrauma.AbilityFlags>("AbilityFlags.lua");

}
}
Expand Down

0 comments on commit 38f8e26

Please sign in to comment.