new documentation and some fixes in code

This commit is contained in:
Evil Factory
2021-09-12 15:58:59 -03:00
parent 3cd5a23af7
commit 656af7df2f
29 changed files with 1861 additions and 5 deletions

19
docs/lua/Character.lua Normal file
View File

@@ -0,0 +1,19 @@
-- luacheck: ignore 111
--[[--
Barotrauma Character class with some additional functions and fields
Barotrauma source code: [Character.cs](https://github.com/evilfactory/Barotrauma-lua-attempt/blob/master/Barotrauma/BarotraumaShared/SharedSource/Characters/Character.cs)
]]
-- @code Character
--- Creates a CharacterInfo.
-- @treturn CharacterInfo
-- @realm server
function Create(speciesName, name, jobPrefab, ragdollFileName, variant, randSync, npcIdentifier) end
--- List of all characters.
-- @treturn table
-- @realm shared
CharacterList = {}