Skip to content

Add gadget:ResourceExcess(excessTable) -> bool#2642

Open
sprunk wants to merge 2 commits into
masterfrom
resource-excess-callin
Open

Add gadget:ResourceExcess(excessTable) -> bool#2642
sprunk wants to merge 2 commits into
masterfrom
resource-excess-callin

Conversation

@sprunk

@sprunk sprunk commented Nov 14, 2025

Copy link
Copy Markdown
Collaborator

Passes a table: { [teamID] = {metal, energy, ...} } The resources are the amount over the storage max, accumulated over the frame. Called at the end of
every frame, contains data for every team.

Return true to take over engine handling; otherwise the native behaviour of buffering it until the next slowupdate will take place.

@sprunk

sprunk commented Nov 14, 2025

Copy link
Copy Markdown
Collaborator Author

Alternative to #2530, I've grown to like this interface more after seeing how people actually work with it.

sprunk and others added 2 commits June 30, 2026 02:13
Passes a table: { [teamID] = {metal, energy, ...} }
The resources are the amount over the storage max,
accumulated over the frame. Called at the end of
every frame, contains data for every team.

Return true to take over engine handling; otherwise
the native behaviour of buffering it until the next
slowupdate will take place.
Mostly for use with the new ResourceExcess callin.
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.

2 participants