Commit fcf02257 authored by chechunchi's avatar chechunchi

sync neos-protobuf

parent d5270a03
neos-protobuf @ 68a20f07
Subproject commit cd10e6a5f76cfda5ada5a39a9a7a526ca9c5e881 Subproject commit 68a20f07e1f2185f68cbf9c83cc61db591498c2d
...@@ -10766,10 +10766,9 @@ export namespace ygopro { ...@@ -10766,10 +10766,9 @@ export namespace ygopro {
constructor(data?: any[] | { constructor(data?: any[] | {
zone?: CardZone; zone?: CardZone;
from_locations?: CardLocation[]; from_locations?: CardLocation[];
to_locations?: CardLocation[];
}) { }) {
super(); super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 3], this.#one_of_decls); pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") { if (!Array.isArray(data) && typeof data == "object") {
if ("zone" in data && data.zone != undefined) { if ("zone" in data && data.zone != undefined) {
this.zone = data.zone; this.zone = data.zone;
...@@ -10777,9 +10776,6 @@ export namespace ygopro { ...@@ -10777,9 +10776,6 @@ export namespace ygopro {
if ("from_locations" in data && data.from_locations != undefined) { if ("from_locations" in data && data.from_locations != undefined) {
this.from_locations = data.from_locations; this.from_locations = data.from_locations;
} }
if ("to_locations" in data && data.to_locations != undefined) {
this.to_locations = data.to_locations;
}
} }
} }
get zone() { get zone() {
...@@ -10794,16 +10790,9 @@ export namespace ygopro { ...@@ -10794,16 +10790,9 @@ export namespace ygopro {
set from_locations(value: CardLocation[]) { set from_locations(value: CardLocation[]) {
pb_1.Message.setRepeatedWrapperField(this, 2, value); pb_1.Message.setRepeatedWrapperField(this, 2, value);
} }
get to_locations() {
return pb_1.Message.getRepeatedWrapperField(this, CardLocation, 3) as CardLocation[];
}
set to_locations(value: CardLocation[]) {
pb_1.Message.setRepeatedWrapperField(this, 3, value);
}
static fromObject(data: { static fromObject(data: {
zone?: CardZone; zone?: CardZone;
from_locations?: ReturnType<typeof CardLocation.prototype.toObject>[]; from_locations?: ReturnType<typeof CardLocation.prototype.toObject>[];
to_locations?: ReturnType<typeof CardLocation.prototype.toObject>[];
}): MsgShuffleSetCard { }): MsgShuffleSetCard {
const message = new MsgShuffleSetCard({}); const message = new MsgShuffleSetCard({});
if (data.zone != null) { if (data.zone != null) {
...@@ -10812,16 +10801,12 @@ export namespace ygopro { ...@@ -10812,16 +10801,12 @@ export namespace ygopro {
if (data.from_locations != null) { if (data.from_locations != null) {
message.from_locations = data.from_locations.map(item => CardLocation.fromObject(item)); message.from_locations = data.from_locations.map(item => CardLocation.fromObject(item));
} }
if (data.to_locations != null) {
message.to_locations = data.to_locations.map(item => CardLocation.fromObject(item));
}
return message; return message;
} }
toObject() { toObject() {
const data: { const data: {
zone?: CardZone; zone?: CardZone;
from_locations?: ReturnType<typeof CardLocation.prototype.toObject>[]; from_locations?: ReturnType<typeof CardLocation.prototype.toObject>[];
to_locations?: ReturnType<typeof CardLocation.prototype.toObject>[];
} = {}; } = {};
if (this.zone != null) { if (this.zone != null) {
data.zone = this.zone; data.zone = this.zone;
...@@ -10829,9 +10814,6 @@ export namespace ygopro { ...@@ -10829,9 +10814,6 @@ export namespace ygopro {
if (this.from_locations != null) { if (this.from_locations != null) {
data.from_locations = this.from_locations.map((item: CardLocation) => item.toObject()); data.from_locations = this.from_locations.map((item: CardLocation) => item.toObject());
} }
if (this.to_locations != null) {
data.to_locations = this.to_locations.map((item: CardLocation) => item.toObject());
}
return data; return data;
} }
serialize(): Uint8Array; serialize(): Uint8Array;
...@@ -10842,8 +10824,6 @@ export namespace ygopro { ...@@ -10842,8 +10824,6 @@ export namespace ygopro {
writer.writeEnum(1, this.zone); writer.writeEnum(1, this.zone);
if (this.from_locations.length) if (this.from_locations.length)
writer.writeRepeatedMessage(2, this.from_locations, (item: CardLocation) => item.serialize(writer)); writer.writeRepeatedMessage(2, this.from_locations, (item: CardLocation) => item.serialize(writer));
if (this.to_locations.length)
writer.writeRepeatedMessage(3, this.to_locations, (item: CardLocation) => item.serialize(writer));
if (!w) if (!w)
return writer.getResultBuffer(); return writer.getResultBuffer();
} }
...@@ -10859,9 +10839,6 @@ export namespace ygopro { ...@@ -10859,9 +10839,6 @@ export namespace ygopro {
case 2: case 2:
reader.readMessage(message.from_locations, () => pb_1.Message.addToRepeatedWrapperField(message, 2, CardLocation.deserialize(reader), CardLocation)); reader.readMessage(message.from_locations, () => pb_1.Message.addToRepeatedWrapperField(message, 2, CardLocation.deserialize(reader), CardLocation));
break; break;
case 3:
reader.readMessage(message.to_locations, () => pb_1.Message.addToRepeatedWrapperField(message, 3, CardLocation.deserialize(reader), CardLocation));
break;
default: reader.skipField(); default: reader.skipField();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment