finally Userdata() syntax, no more nasty CreateUserdata or Userdata.Create

This commit is contained in:
Evil Factory
2021-09-22 19:34:08 -03:00
parent 772edcfe5b
commit dac0734401
4 changed files with 51 additions and 16 deletions

View File

@@ -8,7 +8,6 @@ These are the XNA Vectors, you can find all the functions and fields here: <br>
<a href="https://docs.microsoft.com/en-us/previous-versions/windows/silverlight/dotnet-windows-silverlight/bb199679(v=xnagamestudio.35)">XNA Vector4</a> <br>
Access them via Vector2.\*, Vector3.\*, Vector4.\* <br>
CreateVector2, CreateVector3, CreateVector4 are globals.
]]
-- @code Vectors
@@ -19,14 +18,14 @@ local Vector4 = {}
--- Create Vector2
-- @treturn Vector2
-- @realm shared
function Vector2.__new(x, y) end
function Vector2(X, Y) end
--- Create Vector3
-- @treturn Vector3
-- @realm shared
function Vector3.__new(x, y, z) end
function Vector3(X, Y, Z) end
--- Create Vector4
-- @treturn Vector4
-- @realm shared
function Vector4.__new(x, y, z, w) end
function Vector4(X, Y, Z, W) end