Skip to content

2.9.6

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Aug 22:36
b79c05c

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
    }
}