Skip to content

zhu-rengong/Barotrauma-Lua-Annotations

Repository files navigation

English | 简体中文

Barotrauma Lua Annotations

Lua script annotations generated using the EmmyLuaDocxgen tool for LuaCsForBarotrauma, providing powerful code hints and auto-completion features.

Usage

Using VS Code as an example: You need to install the Lua Language Server plugin, clone this repository, then add the following workspace configuration (recommended setup):

{
	"folders": [
        {
            "path": "<Mod Path>",
        },
	],
	"settings": {
		"Lua.diagnostics.libraryFiles": "Enable",
		"Lua.workspace.library": [
			"<Repository Path>/Library/Client",
			// "<Repository Path>/Library/Server",
		],
		"Lua.diagnostics.disable": [
			"invisible",
			"undefined-doc-name",
			"undefined-global",
			"undefined-field",
			"need-check-nil",
			"param-type-mismatch",
			"return-type-mismatch",
			"assign-type-mismatch",
			"redundant-return-value",
			"missing-parameter",
			"missing-fields",
			"missing-return",
			"missing-return-value",
			"cast-local-type",
			"deprecated",
			"inject-field",
			"lowercase-global"
		],
		"Lua.diagnostics.workspaceDelay": 300000,
	}
}

About

Comprehensive Lua annotations and type hints for Barotrauma modding with LuaCsForBarotrauma.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages