summaryrefslogtreecommitdiff
path: root/examples/resources/lib/vector3.lua
diff options
context:
space:
mode:
authorjussi2024-02-10 21:06:09 +0200
committerjussi2024-02-10 21:06:09 +0200
commit6557a2ebca62c6670736b4ec2914a2aca60dbdba (patch)
tree03a839d7eb4b9bddf3a694a163724ca8d59c819e /examples/resources/lib/vector3.lua
parenteda4eacfce4f62ca09fb4f6559f9b7aeabe3cc31 (diff)
downloadreilua-enhanced-6557a2ebca62c6670736b4ec2914a2aca60dbdba.tar.gz
reilua-enhanced-6557a2ebca62c6670736b4ec2914a2aca60dbdba.tar.bz2
reilua-enhanced-6557a2ebca62c6670736b4ec2914a2aca60dbdba.zip
Build option for Lua events that is off by default.
Diffstat (limited to 'examples/resources/lib/vector3.lua')
-rw-r--r--examples/resources/lib/vector3.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/resources/lib/vector3.lua b/examples/resources/lib/vector3.lua
index 9b77881..037e440 100644
--- a/examples/resources/lib/vector3.lua
+++ b/examples/resources/lib/vector3.lua
@@ -6,7 +6,7 @@ end
local Vector2 = require( "vector2" )
local Vector3 = {}
-Vector3.meta = {
+local metatable = {
__index = Vector3,
__tostring = function( v )
return "{"..tostring( v.x )..", "..tostring( v.y )..", "..tostring( v.z ).."}"
@@ -50,7 +50,7 @@ function Vector3:new( x, y, z )
x, y, z = 0, 0, 0
end
- local object = setmetatable( {}, Vector3.meta )
+ local object = setmetatable( {}, metatable )
object.x = x
object.y = y