mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-05 17:47:54 -04:00
8551f5e0e4
* Mods: Support Luau mods * Enable `integer` type & use it * Link to headers in modding.md * Update link to webgpu.h
16 lines
549 B
C
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;
|