diff options
Diffstat (limited to 'examples/resources/lib/rectangle.lua')
| -rw-r--r-- | examples/resources/lib/rectangle.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/resources/lib/rectangle.lua b/examples/resources/lib/rectangle.lua index ba1f9c6..a37c1c1 100644 --- a/examples/resources/lib/rectangle.lua +++ b/examples/resources/lib/rectangle.lua @@ -38,6 +38,9 @@ Rectangle.meta = { __eq = function( r1, r2 ) return RL.Vector2Equals( { r1.x, r1.y }, { r2.x, r2.y } ) and RL.Vector2Equals( { r1.width, r1.height }, { r2.width, r2.height } ) end, + __concat = function( a, b ) + return tostring( a )..tostring( b ) + end, } function Rectangle:new( x, y, width, height ) |
