Skip to content

Lua: add GetThingsOnSlab#4655

Merged
Loobinex merged 7 commits intodkfans:masterfrom
PieterVdc:lua_things_on_tile
Apr 8, 2026
Merged

Lua: add GetThingsOnSlab#4655
Loobinex merged 7 commits intodkfans:masterfrom
PieterVdc:lua_things_on_tile

Conversation

@PieterVdc
Copy link
Copy Markdown
Member

adds a selection of functions to fetch things on a specific slab or subtile
GetCreaturesOnTile
GetObjectsOnSlab
GetObjectsOnSubtile
GetThingsOnSubtile

@PieterVdc PieterVdc marked this pull request as ready for review April 7, 2026 11:49
Copilot AI review requested due to automatic review settings April 7, 2026 11:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds new Lua API helpers for retrieving “things” located on a specific subtile or slab, plus Lua-side convenience wrappers for common classes (creatures/objects).

Changes:

  • Added C-side Lua globals GetThingsOnSubtile and GetThingsOnSlab.
  • Added Lua manager helpers GetCreaturesOnTile/Subtile and GetObjectsOnTile/Subtile.
  • Registered new manager and updated Lua bindings metadata for the new functions.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/lua_api.c Implements and registers new Lua-exposed queries for things on a subtile/slab.
config/fxdata/lua/managers/ThingManager.lua Adds object-focused convenience wrappers built on the new C APIs.
config/fxdata/lua/managers/CreatureManager.lua Adds creature-focused convenience wrappers built on the new C APIs.
config/fxdata/lua/init.lua Loads the new ThingManager during Lua API initialization.
config/fxdata/lua/bindings/things.lua Declares Lua binding stubs/docs for the new global functions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@PieterVdc PieterVdc marked this pull request as draft April 7, 2026 11:54
PieterVdc and others added 4 commits April 7, 2026 13:55
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@PieterVdc PieterVdc marked this pull request as ready for review April 7, 2026 12:03
@Loobinex Loobinex requested review from Loobinex and removed request for Loobinex April 7, 2026 13:33
@Loobinex Loobinex marked this pull request as draft April 7, 2026 14:31
@Loobinex Loobinex marked this pull request as ready for review April 7, 2026 14:31
@Loobinex Loobinex merged commit 4144532 into dkfans:master Apr 8, 2026
3 of 4 checks passed
@PieterVdc PieterVdc deleted the lua_things_on_tile branch April 8, 2026 07:44
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.

3 participants