@anweather/game-plugin-ssdk 1.7.1 → 1.9.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.
@@ -108,6 +108,14 @@ export var PluginStateUpdate;
108
108
  memberValidators["awaitingParticipantIds"] = new __CompositeCollectionValidator(new __NoOpValidator(), new __NoOpValidator());
109
109
  break;
110
110
  }
111
+ case "undoDisabled": {
112
+ memberValidators["undoDisabled"] = new __NoOpValidator();
113
+ break;
114
+ }
115
+ case "undoBarrier": {
116
+ memberValidators["undoBarrier"] = new __NoOpValidator();
117
+ break;
118
+ }
111
119
  }
112
120
  }
113
121
  return memberValidators[member];
@@ -117,6 +125,8 @@ export var PluginStateUpdate;
117
125
  ...getMemberValidator("pluginState").validate(obj.pluginState, `${path}/pluginState`),
118
126
  ...getMemberValidator("loggedPayload").validate(obj.loggedPayload, `${path}/loggedPayload`),
119
127
  ...getMemberValidator("awaitingParticipantIds").validate(obj.awaitingParticipantIds, `${path}/awaitingParticipantIds`),
128
+ ...getMemberValidator("undoDisabled").validate(obj.undoDisabled, `${path}/undoDisabled`),
129
+ ...getMemberValidator("undoBarrier").validate(obj.undoBarrier, `${path}/undoBarrier`),
120
130
  ];
121
131
  };
122
132
  })(PluginStateUpdate || (PluginStateUpdate = {}));
@@ -428,6 +428,8 @@ export const serializeApplyMoveResponse = async (input, ctx) => {
428
428
  'loggedPayload': _ => se_Document(_, context),
429
429
  'nextTurnParticipantId': [],
430
430
  'pluginState': _ => se_Document(_, context),
431
+ 'undoBarrier': [],
432
+ 'undoDisabled': [],
431
433
  }));
432
434
  if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf('content-length') === -1) {
433
435
  const length = calculateBodyLength(body);
@@ -740,6 +742,8 @@ export const serializeInitializeGameResponse = async (input, ctx) => {
740
742
  'loggedPayload': _ => se_Document(_, context),
741
743
  'nextTurnParticipantId': [],
742
744
  'pluginState': _ => se_Document(_, context),
745
+ 'undoBarrier': [],
746
+ 'undoDisabled': [],
743
747
  }));
744
748
  if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf('content-length') === -1) {
745
749
  const length = calculateBodyLength(body);