@anweather/game-plugin-ssdk 1.3.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -100,6 +100,14 @@ export var PluginStateUpdate;
100
100
  ]);
101
101
  break;
102
102
  }
103
+ case "loggedPayload": {
104
+ memberValidators["loggedPayload"] = new __NoOpValidator();
105
+ break;
106
+ }
107
+ case "awaitingParticipantIds": {
108
+ memberValidators["awaitingParticipantIds"] = new __CompositeCollectionValidator(new __NoOpValidator(), new __NoOpValidator());
109
+ break;
110
+ }
103
111
  }
104
112
  }
105
113
  return memberValidators[member];
@@ -107,6 +115,8 @@ export var PluginStateUpdate;
107
115
  return [
108
116
  ...getMemberValidator("nextTurnParticipantId").validate(obj.nextTurnParticipantId, `${path}/nextTurnParticipantId`),
109
117
  ...getMemberValidator("pluginState").validate(obj.pluginState, `${path}/pluginState`),
118
+ ...getMemberValidator("loggedPayload").validate(obj.loggedPayload, `${path}/loggedPayload`),
119
+ ...getMemberValidator("awaitingParticipantIds").validate(obj.awaitingParticipantIds, `${path}/awaitingParticipantIds`),
110
120
  ];
111
121
  };
112
122
  })(PluginStateUpdate || (PluginStateUpdate = {}));
@@ -424,6 +424,8 @@ export const serializeApplyMoveResponse = async (input, ctx) => {
424
424
  });
425
425
  let body;
426
426
  body = JSON.stringify(take(input, {
427
+ 'awaitingParticipantIds': _ => se_ParticipantIdList(_, context),
428
+ 'loggedPayload': _ => se_Document(_, context),
427
429
  'nextTurnParticipantId': [],
428
430
  'pluginState': _ => se_Document(_, context),
429
431
  }));
@@ -733,6 +735,8 @@ export const serializeInitializeGameResponse = async (input, ctx) => {
733
735
  });
734
736
  let body;
735
737
  body = JSON.stringify(take(input, {
738
+ 'awaitingParticipantIds': _ => se_ParticipantIdList(_, context),
739
+ 'loggedPayload': _ => se_Document(_, context),
736
740
  'nextTurnParticipantId': [],
737
741
  'pluginState': _ => se_Document(_, context),
738
742
  }));