I've added a method to get a new message ID. This allows me to implement some other protocol methods, and hooking into the interactivity message sequence to avoid number clashes which of course is needed to handle replies correctly.
public uint GetNewMessageID()
{
return _currentmessageID++;
}
And then I replaced all occurrences of _currentmessageID++ with this method call for consistency.
Now I can implement my own protocol methods, but ensure I have unique message IDs by calling this public method. Very willing to send a pull request if this of interest.
\Assets\MixerInteractive\Source\Scripts\InteractivityManager.cs
I've added a method to get a new message ID. This allows me to implement some other protocol methods, and hooking into the interactivity message sequence to avoid number clashes which of course is needed to handle replies correctly.
And then I replaced all occurrences of _currentmessageID++ with this method call for consistency.
Now I can implement my own protocol methods, but ensure I have unique message IDs by calling this public method. Very willing to send a pull request if this of interest.