StatusCore
Developer API for authoritative timed player statuses, synchronization, and native HUD presentation.
By ArceDev
| Last updated | 10 hours ago |
| Total downloads | 483 |
| Total rating | 0 |
| Categories | Mods Libraries |
| Dependency string | ArceDev-StatusCore-0.1.0 |
| Dependants | 2 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2305ArceDev-NativeStatusUI
Developer library for adding timed status icons that match How to Fish's native vitals UI.
Preferred version: 0.2.2README
Status Core
Status Core is a developer library for registering and applying authoritative timed player statuses. It owns duration, refresh, expiration, server ticks, owner synchronization, and integration with Native Status UI. It does not add gameplay statuses by itself.
Developer API
Register a StatusDefinition once, then apply it from authoritative server code with StatusApi.Apply(...). Reapplying the same status to the same player refreshes its duration and replaces its source. Providers implement status-specific behavior through callbacks or by querying StatusApi.IsActive(...) from their game hooks.
StatusApi.Register(new StatusDefinition(
id: "YourTeam.YourMod.Bleeding",
displayName: "Bleeding",
iconPng: iconBytes,
color: new Color(0.5f, 0.08f, 0.18f),
tickInterval: 1f,
onTick: context => Damage(context.Target, context.Source)));
// Call from validated server-authoritative gameplay code.
StatusApi.Apply(victim, "YourTeam.YourMod.Bleeding", 6f, attacker);
StatusApi.Remove(...), IsActive(...), and TryGet(...) provide lifecycle and query access. Status Core synchronizes only presentation and timing to the affected player's client; gameplay callbacks execute on the server. Native Status UI remains the rendering layer.
In multiplayer, every participant using a dependent status provider must install Status Core, Native Status UI, and that provider. Status IDs and definitions must match across the lobby.
The initial API intentionally supports one active instance per player and status. Stack and charge policies are deferred until a real status requires them.
AI Disclosure
This mod was developed with assistance from generative AI for programming, documentation, and promotional artwork. The author reviewed, tested, and approved the final implementation and assets.