healthGuard
description: Loads healthKit 1.0.0 under a guard (with retries), so markersKit loads and runs when healthKit cannot. G.proxy stands in with "no healthKit targets" answers; used by hud, api, Gallery and the test suite.
description: Loads healthKit 1.0.0 under a guard (with retries), so markersKit loads and runs when healthKit cannot. G.proxy stands in with "no healthKit targets" answers; used by hud, api, Gallery and the test suite.
markersKit.healthGuard
Exposes available, api, error, proxy, refresh() and status(). When healthKit is missing, proxy answers as if no entity has health: no damage, no events, no health on plates.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2markersKit.healthGuard: loads healthKit 1.0.0 under a guard, so markersKit still loads when it can't. healthKit loads today, an empty-world install included; the guard is a safety net. With healthKit missing, crosshairs, markers, numbers, directions, nameplate names and the gallery preview all work; nothing is driven by healthKit damage and plates have no health to show. Missing healthKit is retried (2 s, doubling up to 60 s), so the kit hooks up as soon as healthKit loads. Read live: G.available, G.api (the real healthKit api or nil), G.error. G.proxy forwards to the real api when it is loaded and otherwise answers like a world with no healthKit targets.
load( ) → void
clock( ) → number
has( ) → boolean
refresh(force: boolean?) → boolean
Retry loading healthKit if it is still missing. Throttled (2 s doubling to 60 s) unless `force`. Returns whether it is available.
| arg | type | description |
|---|---|---|
| force | boolean? |
get(_t: any) → void
| arg | type | description |
|---|---|---|
| _t | any |
lifeline(_t: any) → void
| arg | type | description |
|---|---|---|
| _t | any |
state(_t: any) → void
| arg | type | description |
|---|---|---|
| _t | any |
all( ) → void
nameOf(_t: any) → void
| arg | type | description |
|---|---|---|
| _t | any |
isAlive(_t: any) → void
| arg | type | description |
|---|---|---|
| _t | any |
on(_evt: string, _fn: any) → void
| arg | type | description |
|---|---|---|
| _evt | string | |
| _fn | any |
damage( ) → void
heal( ) → void
revive( ) → void
attach( ) → void
__index(_: ?, k: ?) → void
| arg | type | description |
|---|---|---|
| _ | ? | |
| k | ? |
__index(_: ?, k: ?) → void
| arg | type | description |
|---|---|---|
| _ | ? | |
| k | ? |
_simulate(missing: boolean?) → void
Tests: false pretends healthKit is missing; nil restores the real state.
| arg | type | description |
|---|---|---|
| missing | boolean? |
status( ) → any
Diagnostics: { available, tries, nextRetryIn, error, simulated }.
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.