Skip to content

Add support for custom UDMF fields

As an addition into mapthing_t, side_t, lines_t and sector_t userdata:

customargs linked list(INT32/string/boolean) Read-only Linked list containing all custom UDMF variable entries

Entries in the level need to be prefixed with user_ to avoid any conflict.

The current implementation doesn't contain any iterator ('__pairs') or __len metamethod, merely as a stop gap until C++ is fully enabled. Likely swapping linked list with hash table later if preferable, but I am not working with that right now and bulk of the work is done anyway.

Booleans, strings, floats (converted into fixedpoint) and integers should be fully supported.

This is just building off the old carcass of the previous attempt, so it was quite fast. Unlike the previous attempt, nothing is stored in a Lua table.

customargs.wad customvarstest.lua

Edited by Skydusk

Merge request reports

Loading