This repository has been archived by the owner on Jun 21, 2022. It is now read-only.
Rewrite keyvalue handling #5
Labels
cleanup
This issue is requesting a refactor/cleanup/tidyup
improvement
This issue is requesting an improvement or a change
priority-2
Medium priority, should be fixed sometime
Milestone
Keyvalue handling is not so nice in HL SDK, and while it's a bit faster to write in ADM, that brought a new "not so nice" thing.
Simply put, look at this: https://github.com/Admer456/halflife-ADM/blob/master/dlls/ADM/AdmGetSetKV.cpp
:(
Other than that, handling keyvalues in a manual fashion is fairly repetitive.
What should be done is a system similar to the save-restore system. Each entity class can have a static array of keyvalue elements, where keyvalue elements are basically pairs of strings and byte offsets. In implementation, they're a bit more than that, because you have to specify the data type too.
It'll eventually look something like this:
The text was updated successfully, but these errors were encountered: