Skip to content

Add concise object-editing API documentation - #506

Merged
Frotty merged 4 commits into
masterfrom
codex/document-ability-rawcodes
Oct 7, 2026
Merged

Frotty merged 4 commits into
masterfrom
codex/document-ability-rawcodes

Conversation

@Frotty

@Frotty Frotty commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Add documentation comments containing the four-character WC3 ability ID and AbilityIds constant reference to all 1,581 AbilityDefinition wrappers, including the eight inherited compatibility aliases. This makes the class-to-rawcode mapping available in completion, hover, and generated API documentation.

Constructors already use named IDs. Preserve all existing constructors, setters, presets, compatibility classes, and ID constants. Only comments change.

Add 988 short field comments for 90 metadata labels whose numeric/symbol notation is lost in method names (percentages and numbered attachment points, for example). Ordinary setters and presets receive no repetitive comments; shared level/preset behavior is documented once.

Add concise object-editing class examples and constructor guidance for units, items, buffs, doodads, and destructables, plus ID-generator collision guidance, upgrade effect-slot notes, and brief ID-package descriptions. Preserve existing API documentation and avoid inferred units or ranges.

Validation: grill typecheck --quiet succeeded, the runnable examples also passed a compiler typecheck, grill test --quiet passed 524/524 tests, and git diff --check passed. Every documented rawcode was resolved from the existing AbilityIds mapping, including aliases resolved through their parent wrappers. Selective field labels come from the generated game metadata.

Generator companion: wurstscript/WurstScript#1375

Addresses the class documentation request in wurstscript/wurst4vscode#139. The public API docs need rebuilding after this PR merges.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T12:56:25.816054Z c5dfe5c Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Frotty Frotty changed the title Document WC3 rawcodes for ability definition classes Add concise object-editing API documentation Oct 7, 2026
@Frotty

Frotty commented Oct 7, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 45764047e4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread wurst/objediting/AbilityObjEditing.wurst Outdated
@Frotty

Frotty commented Oct 7, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: c5dfe5c31c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Frotty
Frotty merged commit 1bd9039 into master Oct 7, 2026
2 checks passed
@Frotty
Frotty deleted the codex/document-ability-rawcodes branch October 7, 2026 13:47
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