Skip to content
This repository was archived by the owner on Jul 16, 2020. It is now read-only.

Commit 6a341f8

Browse files
authored
Merge pull request #57 from mixer/dynamic-control-creation
Dynamic control creation
2 parents 0721c0d + bb7c91d commit 6a341f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: Source/InteractiveSDK/Assets/MixerInteractive/Source/Scripts/InteractivityManager.cs

+4
Original file line numberDiff line numberDiff line change
@@ -1444,6 +1444,7 @@ private void ProcessMethod(JsonReader jsonReader)
14441444
HandleInteractivityStarted(jsonReader);
14451445
break;
14461446
case WS_MESSAGE_METHOD_ON_CONTROL_UPDATE:
1447+
case WS_MESSAGE_METHOD_ON_CONTROL_CREATE:
14471448
HandleControlUpdate(jsonReader);
14481449
break;
14491450
case WS_MESSAGE_METHOD_ON_GROUP_CREATE:
@@ -2390,6 +2391,7 @@ private void HandleGiveInput(JsonReader jsonReader)
23902391
string participantSessionID = string.Empty;
23912392
string transactionID = string.Empty;
23922393
InputEvent inputEvent = new InputEvent();
2394+
23932395
while (jsonReader.Read())
23942396
{
23952397
if (jsonReader.Value != null)
@@ -2414,6 +2416,7 @@ private void HandleGiveInput(JsonReader jsonReader)
24142416
}
24152417
}
24162418
}
2419+
24172420
inputEvent.TransactionID = transactionID;
24182421
InteractiveParticipant participant = ParticipantBySessionId(participantSessionID);
24192422
if (!_participantsWhoTriggeredGiveInput.ContainsKey(inputEvent.ControlID))
@@ -3340,6 +3343,7 @@ private void SendJsonString(string jsonString)
33403343
private const string WS_MESSAGE_METHOD_PARTICIPANT_UPDATE = "onParticipantUpdate";
33413344
private const string WS_MESSAGE_METHOD_READY = "ready";
33423345
private const string WS_MESSAGE_METHOD_ON_CONTROL_UPDATE = "onControlUpdate";
3346+
private const string WS_MESSAGE_METHOD_ON_CONTROL_CREATE = "onControlCreate";
33433347
private const string WS_MESSAGE_METHOD_ON_GROUP_CREATE = "onGroupCreate";
33443348
private const string WS_MESSAGE_METHOD_ON_GROUP_UPDATE = "onGroupUpdate";
33453349
private const string WS_MESSAGE_METHOD_ON_READY = "onReady";

0 commit comments

Comments
 (0)