From d21512d88c2e24cf8cb230d29fb253fb5efd1661 Mon Sep 17 00:00:00 2001 From: jussi Date: Tue, 30 Jan 2024 13:36:23 +0200 Subject: Rune lib and __concat for variable libs. --- examples/resources/lib/quaternion.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/resources/lib/quaternion.lua') diff --git a/examples/resources/lib/quaternion.lua b/examples/resources/lib/quaternion.lua index a545838..e85415c 100644 --- a/examples/resources/lib/quaternion.lua +++ b/examples/resources/lib/quaternion.lua @@ -33,6 +33,9 @@ Quaternion.meta = { __eq = function( q1, q2 ) return RL.QuaternionEquals( q1, q2 ) == 1 end, + __concat = function( a, b ) + return tostring( a )..tostring( b ) + end, } function Quaternion:new( x, y, z, w ) -- cgit v1.2.3