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

Add iteration support to RmlUi data model handles

Open
#2,234 13 comments 0 reactions 0 assignees View on GitHub
area: RmlUi enhancement
Dominant language
C++
Stars
679
Forks
290
Avg merge
3d 2h
Merged PRs (30d)
40

Description

The data model handle returned from RmlUi when creating a data model cannot be iterated over. This is because the handle is an empty table with a metatable to detect changes. A pairs function needs to be set on the metatable so that the handle can have iteration. See the example provided by sol:

Contributor guide

Open the contributing guide

Research direction

Locate the RmlUi data model handle creation path and inspect how its empty table metatable detects changes. Read the linked sol pairs.cpp example for the relevant iteration behavior. Done means the returned handle supports iteration without breaking change detection; verify with the project's existing data-model tests if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, lua
Domain
game-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.