beyond-all-reason / beyond-all-reason/RecoilEngine

Basecontent wupget handlers: let `wupget:GetInfo` be a table

Open
#1,026 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.