beyond-all-reason / beyond-all-reason/RecoilEngine
Basecontent wupget handlers: let `wupget:GetInfo` be a table
Open
Nobody has claimed this yet.
area: Lua API
enhancement
good first issue
- Dominant language
- C++
- Stars
- 683
- Forks
- 293
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 40
Description
Currently wupget:GetInfo has to be a function that returns a table. I don't think i've ever seen a GetInfo function that doesn't look like this though:
function wupget:GetInfo()
return {
-- blabla some essentially static table
}
end
Consider skipping the useless function wrapper and letting it just be a table directly.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by searching the basecontent wupget handlers for wupget:GetInfo and tracing how it is consumed. Confirm the current function-based contract and identify the changes needed to accept a table directly. Done means a table-valued GetInfo works for handlers without the wrapper function.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100