Currently we do not have a KeyValuePair data structure available in EnforceScript, and it would be more efficient than storing single entries in a map data structure, or creating a custom class to act as a key and pair.
Description
Description
Details
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- N/A
- Operating System
- Windows 10 x64
- Category
- General
Event Timeline
Comment Actions
scripts\1_Core\param.c
Param param = new Param2<float, string>(3.14, "Pi");
Use a map with < TKeyType, ref Param > and you can store N (currently defined for 1-6) values per "column" with the map structure being the "rows".
If this is not working out for you, let me know why and a use case that you do not see covered yet.
Comment Actions
I don't know what I didn't think of this. Completely forgot about the Param data type, and honestly got it confused as a Tuple, because of how long you can make them. This should actually suffice, I feel quite stupid now.