Skip to content

Clean up function list and type-safe function saving - #117

Merged
Yamagi merged 5 commits into
yquake2:masterfrom
BjossiAlfreds:sg-funcs
May 26, 2026
Merged

Clean up function list and type-safe function saving#117
Yamagi merged 5 commits into
yquake2:masterfrom
BjossiAlfreds:sg-funcs

Conversation

@BjossiAlfreds

Copy link
Copy Markdown
Contributor

Xatrix version of PR yquake2/yquake2#1314

There was one massive list of functions so for example a think function could get linked to the touch function pointer. This commit creates an API for mapping function pointers to their respective function list
These functions are not assigned directly so they need to be marked so that fngen detects them correctly
…oved FFL_SPAWNTEMP

Having fields from 2 structs in the same list is very easy to mess up
The client struct is linked to the entity after reading the save file. This also avoids the un-serialized client pointer from being written into the save
@Yamagi

Yamagi commented May 26, 2026

Copy link
Copy Markdown
Member

Thank you :)

@Yamagi
Yamagi merged commit aac85f6 into yquake2:master May 26, 2026
9 checks passed
@BjossiAlfreds
BjossiAlfreds deleted the sg-funcs branch May 26, 2026 19:36
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