feat: Add spawner util

+ Added spawner utility

+ Bumped to v0.1.4
This commit is contained in:
Mark Marks 2024-09-24 19:47:49 +02:00
parent 33913122fd
commit dcb55661ac
6 changed files with 501 additions and 2 deletions

View file

@ -3,18 +3,26 @@
local jecs = require("@jecs")
local WORLD = require("./world")
local collect = require("./collect")
export type collect_signal_like<T...> = collect.signal_like<any, T...>
export type collect_verbose_signal_like<D, T...> = collect.signal_like<D, T...>
local command_buffer = require("./command_buffer")
export type command_buffer = command_buffer.command_buffer
local handle = require("./handle")
export type handle = handle.handle
local ref = require("./ref")
local replicator = require("./replicator")
export type replicator = replicator.replicator
export type changes = replicator.changes
local spawner = require("./spawner")
export type spawner<T...> = spawner.spawner<T...>
--- Set the world for all utilities.
--- Should be called once per context before any utility is used.
--- @param world jecs.World
@ -30,4 +38,5 @@ return {
replicator = replicator,
ref = ref,
command_buffer = command_buffer,
spawner = spawner,
}