Skip to content

docs: refresh API contracts and add an extension cookbook - #24

Merged
kitsunoff merged 26 commits into
mainfrom
docs/api-refresh
Dec 1, 2026
Merged

kitsunoff merged 26 commits into
mainfrom
docs/api-refresh

Conversation

@kitsunoff

Copy link
Copy Markdown
Owner

What

  • Bring every docs/api/*.md contract document in line with the current code in addons/ (core, the weapon-base
    integrations, Infection). Stale functions, signatures, settings, hooks, net messages, file lists and statuses are
    corrected; public API that existed only in code is documented; the API index lists every file with current status.
  • Rewrite the player guide (docs/guide/playing.md) for the current game: all modes, playlists, menu tabs, settings,
    controls, progression and weekly challenges.
  • Turn docs/guide/extending.md into the entry point of an extension cookbook under docs/guide/extending/: your own
    content addon, modes, perks, killstreaks, wildcards, equipment, bot behaviours, weapon-base adapters, modules and
    settings, HUD and UI, map data, playlists, progression and unlocks, and the most useful PW_* hooks. Each recipe has
    a minimal and a realistic example, pitfalls, a GLuaTest example and links to the contracts.
  • Fix a few stale references elsewhere (weapon-ban setting names, shipped objective maps, implemented integrations).

Why

The documentation drifted during many merges and the guides covered only a few simple cases. Contributors and coding
agents need current contracts and worked examples for the common ways to extend the gamemode.

Notes

  • Documentation only; no code, design decision or test changes. Stim documentation is handled in a separate change.
  • Where code and design disagree, the documents describe the code and do not change the decision; the conflicts are
    listed for follow-up rather than resolved here.
  • Guide examples were checked against the code, but they were not executed in the game.

Verification

  • make check passes (lint, types, markdown, rules, agent-guide links, self-tests).

The perk adrenaline belongs to the shadow_ops bundle, unpriced stock cards
are not shop offers, and PW.Reveal also takes a source token.

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
…n perks

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
…ith the code

Document the readiness preflight and dependency pins, the scheduled map
change, PW_MatchStartRefused, the pending playlist field and the
privileges the core declares.

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
…ntegrations

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
…easons

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
…d generation

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
…the feature contracts

The approved decisions are unchanged; this adds the code's readiness
replication keys, invalidation hook, site message, playlist codec and
chatter messages.

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
…eboard extension

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
…d gate

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
… reset message

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
…D element

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
… invalidation

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
…ogression details

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
…e to the loadout contract

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
…ote the phase listener defect

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
… date

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
…bby errors and class lists

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
…t runtime in the modes contract

Also record the score context argument, the popup order, the shipped
modes and score events, the bot settings and the vote refusals.

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
…e bots contract

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
…medals row

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
Bring the player guide in line with the shipped lobby, modes, scheduled
playlists, menu tabs, gamepad bindings, HUD, progression and weekly
challenges, and correct the stale vote, LOADOUT and troubleshooting facts.

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
Add one recipe per extension case: content packs, modes, perks,
killstreaks, wildcards, equipment, bot behaviours, weapon adapters,
modules with settings, HUD and screens, map data, playlists, progression
content and a hook reference. Each recipe has a minimal and a realistic
example checked against the current API, pitfalls and a GLuaTest pattern.

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
Explain how the merged lua tree is loaded, the rules every kind shares and
the full kind table, and link every recipe instead of inlining a few.

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
@kitsunoff
kitsunoff marked this pull request as ready for review December 1, 2026 19:29
@kitsunoff
kitsunoff merged commit b537dfe into main Dec 1, 2026
@kitsunoff
kitsunoff deleted the docs/api-refresh branch December 1, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant