Implement util function for merging 2 tables

This commit is contained in:
mrkubax10 2024-10-24 16:28:18 +02:00
parent 52aea868a5
commit fd3df487e5

View File

@ -36,6 +36,12 @@ function industrialtest.internal.clamp(num,min,max)
return math.max(math.min(num,max),min)
end
function industrialtest.internal.unpackTableInto(first,second)
for k,v in pairs(second) do
first[k]=v
end
end
-- \brief Returns machine speed in items per operation
-- \param meta MetaDataRef
-- \returns number