unpack.lua 432 B

123456789101112131415161718192021222324
  1. return {
  2. summary = 'Get the components of the vector.',
  3. description = 'Returns the 2 components of the vector as numbers.',
  4. arguments = {},
  5. returns = {
  6. x = {
  7. type = 'number',
  8. description = 'The x value.'
  9. },
  10. y = {
  11. type = 'number',
  12. description = 'The y value.'
  13. }
  14. },
  15. variants = {
  16. {
  17. arguments = {},
  18. returns = { 'x', 'y' }
  19. }
  20. },
  21. related = {
  22. 'Vec2:set'
  23. }
  24. }