2.9.6
APIs can now use custom enums. The enums need to be identical on both sides. That means the :
- Type name
- Amount of entries in the enum
- The underlying type (int, uint, ulong, etc.)
- Value of each entry
has to be the same.
Here's an example from the QSB TTS addon :
public interface ITTSAPI
{
void PlayTTS(string text, TTSVoice voice);
public enum TTSVoice : uint
{
Paul,
Betty,
Harry,
Frank,
Dennis,
Kit,
Ursula,
Rita,
Wendy
}
}