Skip to content

Add support for card declaration check core callback - #24

Open
DyXel wants to merge 16 commits into
masterfrom
card_declare_callback
Open

Add support for card declaration check core callback#24
DyXel wants to merge 16 commits into
masterfrom
card_declare_callback

Conversation

@DyXel

@DyXel DyXel commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Untested. Depends on edo9300/ygopro-core#174

We use the given opcodes to build an SQL query that checks the count of the
cards that match the criteria, this query depends on a custom SQL function
(ocg_is_set) to check setcodes, which is also implemented here.

DyXel and others added 7 commits July 13, 2026 00:15
Untested. Depends on edo9300/ygopro-core#174

We use the given opcodes to build an SQL query that checks the count of the
cards that match the criteria, this query depends on a custom SQL function
(`ocg_is_set`) to check setcodes, which is also implemented here.
there's no need to use a "cursor" variable, due the way the parsing works, when recursing, all the emplace calls can just insert at the beginning of the string, and things will work out.
As optimization, append the strings reversed, so that the actual string object will only ever increase to the right, avoiding memory moving
@DyXel
DyXel force-pushed the card_declare_callback branch from 6d7e832 to 4ac7d25 Compare July 12, 2026 22:15
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