2024-11-23 10:07:49 +07:00
2024-11-22 08:56:27 +07:00
2024-11-23 10:07:49 +07:00
2024-11-23 10:07:49 +07:00
2024-11-10 20:13:02 +07:00
2024-11-11 06:55:04 +07:00
2024-11-10 20:13:02 +07:00
2024-11-23 10:07:49 +07:00
2024-11-23 10:07:49 +07:00

evolved.lua

API Reference

Module registry

registry.entity -> (entity)
registry.is_alive -> entity -> (boolean)
registry.destroy -> entity -> ()
registry.get -> entity -> entity -> (any)
registry.get_or -> entity -> entity -> any -> (any)
registry.has -> entity -> entity -> (boolean)
registry.has_all -> entity -> entity -> entity... -> (boolean)
registry.has_any -> entity -> entity -> entity... -> (boolean)
registry.assign -> entity -> entity -> any -> ()
registry.insert -> entity -> entity -> any -> ()
registry.remove -> entity -> entity -> ()
registry.query -> entity -> entity... -> (query)
registry.execute -> query -> (() -> (chunk?))
registry.chunk -> entity -> entity... -> (chunk)
registry.chunk_entities -> chunk -> entity -> (entity[])
registry.chunk_components -> chunk -> entity -> (any[])

Module singles

singles.single -> any -> (entity)
singles.get -> entity -> (any)
singles.has -> entity -> (boolean)
singles.assign -> entity -> any -> ()

Module vectors

vectors.vector2 -> number -> number -> (vector2)
vectors.is_vector2 -> any -> (boolean)

License (MIT)

Description
Evolved ECS (Entity-Component-System) for Lua
Readme 6.6 MiB
Languages
Lua 100%