Hello,
It would be useful to have some code called when a hash map is deleted so that we can do some custom cleanup.
Simplest implementation could be done by checking if map contains a special key like "__deleted_handler", and if it exists, the game could call this code.
Usage example:
testhash = createHashMap; testhash set [ "__deleted_handler" , { params ["_hm"]; // _this = this hashmap // do something with the elements of _hm }];