mirror of
https://github.com/Reuh/ubiquitousse.git
synced 2025-10-27 17:19:31 +00:00
Remove backend system and ctruLua support
Since I only use the LÖVE backend anyway, this simplifies the code. Tidied some code.
This commit is contained in:
parent
9f4c03a136
commit
4b75f21e52
17 changed files with 663 additions and 1067 deletions
|
|
@ -422,7 +422,6 @@ end
|
|||
ecs = {
|
||||
--- Create and returns a world system based on a list of systems.
|
||||
-- The systems will be instancied for this world.
|
||||
-- @impl ubiquitousse
|
||||
world = (...)
|
||||
let world = setmetatable({
|
||||
filter = ecs.all(),
|
||||
|
|
@ -436,7 +435,6 @@ ecs = {
|
|||
end,
|
||||
|
||||
--- Returns a filter that returns true if, for every argument, a field with the same name exists in the entity.
|
||||
-- @impl ubiquitousse
|
||||
all = (...)
|
||||
if ... then
|
||||
let l = {...}
|
||||
|
|
@ -454,7 +452,6 @@ ecs = {
|
|||
end,
|
||||
|
||||
--- Returns a filter that returns true if one of the arguments if the name of a field in the entity.
|
||||
-- @impl ubiquitousse
|
||||
any = (...)
|
||||
if ... then
|
||||
let l = {...}
|
||||
|
|
@ -472,7 +469,6 @@ ecs = {
|
|||
end,
|
||||
|
||||
--- If uqt.scene is available, returns a new scene that will consist of a ECS world with the specified systems and entities.
|
||||
-- @impl ubiquitousse
|
||||
scene = (name, systems={}, entities={})
|
||||
assert(scene, "ubiquitousse.scene unavailable")
|
||||
let s = scene.new(name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue