GMR Lua API
A Visual Studio Code extension that provides Lua library definitions for GMR, enabling IntelliSense, autocompletion, and type checking for GMR-specific APIs.
Features
- GMR API Definitions: Automatically adds GMR Lua definitions to the
Lua.workspace.library
setting.
- Seamless Integration: Works with the Lua extension by sumneko to provide IntelliSense and type checking for GMR APIs.
- Easy Setup: Just install the extension, and it will configure everything for you.
Installation
- Open Visual Studio Code.
- Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or pressing
Ctrl+Shift+X
.
- Search for "GMR Lua API".
- Click Install to install the extension.
Usage
Once installed, the extension will automatically add the GMR Lua definitions to your workspace. You can start using GMR APIs with full IntelliSense support.
Example
Here’s an example of how to use GMR APIs with autocompletion and type checking:
---@type GMR
local gmr = ...
-- Use GMR APIs with IntelliSense support
gmr.AmmoExists() -- Autocompletion and type checking will work here
Requirements
Contributing
Contributions are welcome! If you have any ideas, suggestions, or issues, please open an issue or submit a pull request.
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeatureName
).
- Commit your changes (
git commit -m 'Add some feature'
).
- Push to the branch (
git push origin feature/YourFeatureName
).
- Open a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgements
Enjoy using GMR Lua API! If you have any questions or feedback, feel free to open an issue.