tiny -> Tiny
This commit is contained in:
parent
7c69889098
commit
0a71f140dd
|
@ -1,4 +1 @@
|
||||||
std = "lua54+love"
|
std = "love"
|
||||||
stds.project = {
|
|
||||||
globals = {"tiny"},
|
|
||||||
}
|
|
|
@ -927,5 +927,4 @@ worldMetaTable = {
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
_G.tiny = tiny
|
|
||||||
return tiny
|
return tiny
|
||||||
|
|
4
main.lua
4
main.lua
|
@ -1,9 +1,9 @@
|
||||||
require("tiny-debug")
|
require("tiny-debug")
|
||||||
tiny = require("lib/tiny")
|
Tiny = require("lib/tiny")
|
||||||
require("utils")
|
require("utils")
|
||||||
require("tiny-tools")
|
require("tiny-tools")
|
||||||
|
|
||||||
World = tiny.world()
|
World = Tiny.world()
|
||||||
|
|
||||||
require("generated/filter-types")
|
require("generated/filter-types")
|
||||||
require("generated/assets")
|
require("generated/assets")
|
||||||
|
|
|
@ -8,7 +8,7 @@ function filteredSystem(name, shape, process, compare)
|
||||||
assert(type(shape) == "table" or type(shape) == "function")
|
assert(type(shape) == "table" or type(shape) == "function")
|
||||||
assert(process == nil or type(process) == "function")
|
assert(process == nil or type(process) == "function")
|
||||||
|
|
||||||
local system = compare and tiny.sortedProcessingSystem() or tiny.processingSystem()
|
local system = compare and Tiny.sortedProcessingSystem() or Tiny.processingSystem()
|
||||||
system.compare = compare
|
system.compare = compare
|
||||||
system.name = name
|
system.name = name
|
||||||
if type(shape) == "table" then
|
if type(shape) == "table" then
|
||||||
|
@ -22,7 +22,7 @@ function filteredSystem(name, shape, process, compare)
|
||||||
keys[#keys + 1] = key
|
keys[#keys + 1] = key
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
system.filter = tiny.requireAll(unpack(keys))
|
system.filter = Tiny.requireAll(unpack(keys))
|
||||||
elseif type(shape) == "function" then
|
elseif type(shape) == "function" then
|
||||||
system.filter = shape
|
system.filter = shape
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue