Build option for Lua events that is off by default.

This commit is contained in:
jussi
2024-02-10 21:06:09 +02:00
parent eda4eacfce
commit 6557a2ebca
11 changed files with 29 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ end
local Vector3 = require( "vector3" )
local Color = {}
Color.meta = {
local metatable = {
__index = Color,
__tostring = function( c )
return "{"..math.floor( c.r )..", "..math.floor( c.g )..", "..math.floor( c.b )..", "..math.floor( c.a ).."}"
@@ -57,7 +57,7 @@ function Color:new( r, g, b, a )
a = 255
end
local object = setmetatable( {}, Color.meta )
local object = setmetatable( {}, metatable )
object.r = r
object.g = g