mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-25 16:53:46 +01:00
Vector: Remove modlib dependency
This commit is contained in:
parent
c0ec9a2925
commit
a14fa1143d
@ -1,5 +1,5 @@
|
||||
-- Localize globals
|
||||
local assert, math, modlib, pairs, rawset, setmetatable, unpack, vector = assert, math, modlib, pairs, rawset, setmetatable, unpack, vector
|
||||
local assert, math, pairs, rawset, setmetatable, unpack, vector = assert, math, pairs, rawset, setmetatable, unpack, vector
|
||||
|
||||
-- Set environment
|
||||
local _ENV = {}
|
||||
@ -11,11 +11,10 @@ index_aliases = {
|
||||
x = 1,
|
||||
y = 2,
|
||||
z = 3,
|
||||
w = 4
|
||||
w = 4;
|
||||
"x", "y", "z", "w";
|
||||
}
|
||||
|
||||
modlib.table.add_all(index_aliases, modlib.table.flip(index_aliases))
|
||||
|
||||
metatable = {
|
||||
__index = function(table, key)
|
||||
local index = index_aliases[key]
|
||||
|
Loading…
Reference in New Issue
Block a user