@anweather/game-plugin-ssdk 1.8.0 → 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.
@@ -112,6 +112,14 @@ var PluginStateUpdate;
112
112
  memberValidators["awaitingParticipantIds"] = new server_common_1.CompositeCollectionValidator(new server_common_1.NoOpValidator(), new server_common_1.NoOpValidator());
113
113
  break;
114
114
  }
115
+ case "undoDisabled": {
116
+ memberValidators["undoDisabled"] = new server_common_1.NoOpValidator();
117
+ break;
118
+ }
119
+ case "undoBarrier": {
120
+ memberValidators["undoBarrier"] = new server_common_1.NoOpValidator();
121
+ break;
122
+ }
115
123
  }
116
124
  }
117
125
  return memberValidators[member];
@@ -121,6 +129,8 @@ var PluginStateUpdate;
121
129
  ...getMemberValidator("pluginState").validate(obj.pluginState, `${path}/pluginState`),
122
130
  ...getMemberValidator("loggedPayload").validate(obj.loggedPayload, `${path}/loggedPayload`),
123
131
  ...getMemberValidator("awaitingParticipantIds").validate(obj.awaitingParticipantIds, `${path}/awaitingParticipantIds`),
132
+ ...getMemberValidator("undoDisabled").validate(obj.undoDisabled, `${path}/undoDisabled`),
133
+ ...getMemberValidator("undoBarrier").validate(obj.undoBarrier, `${path}/undoBarrier`),
124
134
  ];
125
135
  };
126
136
  })(PluginStateUpdate || (exports.PluginStateUpdate = PluginStateUpdate = {}));
@@ -446,6 +446,8 @@ const serializeApplyMoveResponse = async (input, ctx) => {
446
446
  'loggedPayload': _ => se_Document(_, context),
447
447
  'nextTurnParticipantId': [],
448
448
  'pluginState': _ => se_Document(_, context),
449
+ 'undoBarrier': [],
450
+ 'undoDisabled': [],
449
451
  }));
450
452
  if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf('content-length') === -1) {
451
453
  const length = (0, util_body_length_node_1.calculateBodyLength)(body);
@@ -768,6 +770,8 @@ const serializeInitializeGameResponse = async (input, ctx) => {
768
770
  'loggedPayload': _ => se_Document(_, context),
769
771
  'nextTurnParticipantId': [],
770
772
  'pluginState': _ => se_Document(_, context),
773
+ 'undoBarrier': [],
774
+ 'undoDisabled': [],
771
775
  }));
772
776
  if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf('content-length') === -1) {
773
777
  const length = (0, util_body_length_node_1.calculateBodyLength)(body);