Files
dusklight/sdk/include/mods/runtime.h
T
Luke Street 8551f5e0e4 Mods: Support Luau mods (#2377)
* Mods: Support Luau mods

* Enable `integer` type & use it

* Link to headers in modding.md

* Update link to webgpu.h
2026-09-03 09:20:51 -06:00

16 lines
549 B
C

#pragma once
#include <mods/api.h>
/*
* Lifecycle service for mods delegated to a runtime named by mod.json. The host passes the
* runtime's context as ctx and the delegated mod's context as subject.
*/
typedef struct ModRuntimeService {
ServiceHeader header;
ModResult (*activate)(ModContext* ctx, ModContext* subject, ModError* out_error);
ModResult (*update)(ModContext* ctx, ModContext* subject, ModError* out_error);
ModResult (*deactivate)(ModContext* ctx, ModContext* subject, ModError* out_error);
} ModRuntimeService;