Added extension to Plugin Manager that supports scripts in a Plugin folder

This commit is contained in:
Maruno17
2021-04-25 19:09:56 +01:00
parent 484813c592
commit 0b757d3863
4 changed files with 415 additions and 60 deletions

View File

@@ -76,6 +76,13 @@ class Array
def ^(other) # xor of two arrays
return (self|other) - (self&other)
end
def swap(val1, val2)
index1 = self.index(val1)
index2 = self.index(val2)
self[index1] = val2
self[index2] = val1
end
end
#===============================================================================