This is a Visual Studio Code extension providing Venice Unleashed type information and intermediate code generation to make mod development less tedious. It utilizes Sumneko's Lua extension for VS Code and adds an additional parser to read documentation from user code and generate intermediate code files to help the IntelliSense engine work with how classes and functions are defined in VU.
Vua Commands
command menu and then download and build the project templates and VU doc types using the Download and Build Content
commandCreate New Project
commandThe following are the supported and planned features for this extension:
The following is the recommended code style for user-defined classes:
---This is a customized user type containing public fields name and position
---@class MyObject
---@field name string|nil
---@field position Vec3
MyObject = class('MyObject')
---Constructor which initializes the class instance
---@param name string|nil
---@param position Vec3
function MyObject:__init(name, position)
self.name = name
self.position = position
end
---Get object's string representation
---@return string @ Returns a string representation of the object
function MyObject:ToString()
return self.name .. ' : ' .. self.position
end
...
local obj = MyObject('obj', Vec3(1.0, 2.0, 3.0))
See changelog for more information.
Some people I want to thank for their hard work.
Venice Unleashed Developers:
Contributors:
For libraries and technologies used by this extension: