Improve handling of KeyValueData in FM and make it compatible with Ham

- KVD_Wrapper compatibility with Ham by making |&kvdw == &kvdw.kvd|
- Replaces g_kvd_hook with a generic g_kvd_ext to support raw KVD from Ham
- Adds create_kvd() and free_kvd() so plugins have something to feed Ham with
This commit is contained in:
Valentin Grünbacher
2015-04-14 14:34:18 +02:00
parent 0bfc04bb14
commit 8172519389
6 changed files with 93 additions and 26 deletions

View File

@ -473,6 +473,9 @@ native get_kvd(kvd_handle, KeyValueData:member, any:...);
// keyvalues structure rather than changing the internal engine strings.
native set_kvd(kvd_handle, KeyValueData:member, any:...);
native create_kvd();
native free_kvd(kvd_handle);
// These functions are used with the clientdata data structure (FM_UpdateClientData)
// Get: 0 extra params - Return integer; 1 extra param - by ref float or vector; 2 extra params - string and length
// Set: Use anything