Implement util function for merging 2 tables
This commit is contained in:
parent
52aea868a5
commit
fd3df487e5
@ -36,6 +36,12 @@ function industrialtest.internal.clamp(num,min,max)
|
|||||||
return math.max(math.min(num,max),min)
|
return math.max(math.min(num,max),min)
|
||||||
end
|
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
|
-- \brief Returns machine speed in items per operation
|
||||||
-- \param meta MetaDataRef
|
-- \param meta MetaDataRef
|
||||||
-- \returns number
|
-- \returns number
|
||||||
|
Loading…
Reference in New Issue
Block a user