Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for nestedArrays, nestedTables and operators #21

Closed
Imposter opened this issue Dec 16, 2021 · 4 comments
Closed

Add support for nestedArrays, nestedTables and operators #21

Imposter opened this issue Dec 16, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Imposter
Copy link
Owner

Imposter commented Dec 16, 2021

The VU-Docs have nestedArrays, nestedTables and operators which are not currently implemented (or figured out) for the EmmyLua equivalent in the meta files.

This is required to finish up most of the VEXT related stuff for the 1.0 release.

@Imposter Imposter added the enhancement New feature or request label Dec 16, 2021
@Imposter Imposter added this to the Version 1.0 milestone Dec 16, 2021
@Imposter Imposter self-assigned this Dec 16, 2021
@Imposter Imposter changed the title Add support for nestedArrays and nestedTables Add support for nestedArrays, nestedTables and operators Dec 16, 2021
@FlashHit
Copy link
Contributor

FlashHit commented Dec 16, 2021

Example: https://docs.veniceunleashed.net/vext/ref/server/type/player/#weaponunlocks
It’s just that you can do .weaponUnlocks[1][1] and it would give you the weaponunlock for the weapon of slot 1. for example RDS scope.
Like each weapon has 4 unlocks i think.
So just doing weaponUnlock[1] would return a table or nil.

it probably would be something like:

—-@param weaponUnlocks table<integer, vector|DataContainer[]>

@FlashHit
Copy link
Contributor

Maybe sth like this?

code += `table<integer, vector|${_LT(p.type)}[]>`; // nestedTable

code += `vector|table<integer, vector|${_LT(p.type)}[]>`; // nestedArray (who cares, doesn’t even exist)

@FlashHit
Copy link
Contributor

And operators are not possible atm I guess: LuaLS/lua-language-server#599

@Imposter
Copy link
Owner Author

Imposter commented May 30, 2022

Fixed in #32
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants