questzdoom/Projects/Android/jni/gzdoom-g3.3mgw_mobile/wadsrc/static/zscript/dictionary.zs
Simon 4f3b54e84a Major Update - LZDoom 3.85
- Updated to LZDoom 3.85
- Fix for issue where multi-projectile weapons don't have projectile spread
- Configurable cinema mode toggle button
2020-05-28 23:57:00 +01:00

50 lines
1.1 KiB
Text

struct Dictionary native
{
native static Dictionary Create();
native void Insert(String key, String value);
native void Remove(String key);
/**
* Returns the value for the specified key.
*/
native String At(String key) const;
/**
* Deserializes a dictionary from a string.
*
* @param s serialized string, must be either empty or returned from ToString().
*/
native static Dictionary FromString(String s);
/**
* Serializes a dictionary to a string.
*/
native String ToString() const;
}
struct DictionaryIterator native
{
native static DictionaryIterator Create(Dictionary dict);
/**
* Returns false if there are no more entries in the dictionary.
* Otherwise, returns true.
*
* While it returns true, get key and value for the current entry
* with Key() and Value() functions.
*/
native bool Next();
/**
* Returns the key for the current dictionary entry.
* Do not call this function before calling Next().
*/
native String Key() const;
/**
* Returns the value for the current dictionary entry.
* Do not call this function before calling Next().
*/
native String Value() const;
}