Commit 7e7a8e82 authored by chechunchi's avatar chechunchi

sync neos-protobuf

parent efa1ca7b
Pipeline #19163 passed with stages
in 4 minutes and 11 seconds
neos-protobuf @ cb96e3b2
Subproject commit 476836fd77f133198c9bb73b4b3587d9917b291a Subproject commit cb96e3b24aa5a33e0cc87239434cf3c745cb59b8
...@@ -6849,7 +6849,7 @@ export namespace ygopro { ...@@ -6849,7 +6849,7 @@ export namespace ygopro {
| any[] | any[]
| { | {
player?: number; player?: number;
special?: boolean; special_count?: number;
forced?: boolean; forced?: boolean;
hint0?: number; hint0?: number;
hint1?: number; hint1?: number;
...@@ -6869,8 +6869,8 @@ export namespace ygopro { ...@@ -6869,8 +6869,8 @@ export namespace ygopro {
if ("player" in data && data.player != undefined) { if ("player" in data && data.player != undefined) {
this.player = data.player; this.player = data.player;
} }
if ("special" in data && data.special != undefined) { if ("special_count" in data && data.special_count != undefined) {
this.special = data.special; this.special_count = data.special_count;
} }
if ("forced" in data && data.forced != undefined) { if ("forced" in data && data.forced != undefined) {
this.forced = data.forced; this.forced = data.forced;
...@@ -6892,10 +6892,10 @@ export namespace ygopro { ...@@ -6892,10 +6892,10 @@ export namespace ygopro {
set player(value: number) { set player(value: number) {
pb_1.Message.setField(this, 1, value); pb_1.Message.setField(this, 1, value);
} }
get special() { get special_count() {
return pb_1.Message.getFieldWithDefault(this, 2, false) as boolean; return pb_1.Message.getFieldWithDefault(this, 2, 0) as number;
} }
set special(value: boolean) { set special_count(value: number) {
pb_1.Message.setField(this, 2, value); pb_1.Message.setField(this, 2, value);
} }
get forced() { get forced() {
...@@ -6928,7 +6928,7 @@ export namespace ygopro { ...@@ -6928,7 +6928,7 @@ export namespace ygopro {
} }
static fromObject(data: { static fromObject(data: {
player?: number; player?: number;
special?: boolean; special_count?: number;
forced?: boolean; forced?: boolean;
hint0?: number; hint0?: number;
hint1?: number; hint1?: number;
...@@ -6940,8 +6940,8 @@ export namespace ygopro { ...@@ -6940,8 +6940,8 @@ export namespace ygopro {
if (data.player != null) { if (data.player != null) {
message.player = data.player; message.player = data.player;
} }
if (data.special != null) { if (data.special_count != null) {
message.special = data.special; message.special_count = data.special_count;
} }
if (data.forced != null) { if (data.forced != null) {
message.forced = data.forced; message.forced = data.forced;
...@@ -6962,7 +6962,7 @@ export namespace ygopro { ...@@ -6962,7 +6962,7 @@ export namespace ygopro {
toObject() { toObject() {
const data: { const data: {
player?: number; player?: number;
special?: boolean; special_count?: number;
forced?: boolean; forced?: boolean;
hint0?: number; hint0?: number;
hint1?: number; hint1?: number;
...@@ -6973,8 +6973,8 @@ export namespace ygopro { ...@@ -6973,8 +6973,8 @@ export namespace ygopro {
if (this.player != null) { if (this.player != null) {
data.player = this.player; data.player = this.player;
} }
if (this.special != null) { if (this.special_count != null) {
data.special = this.special; data.special_count = this.special_count;
} }
if (this.forced != null) { if (this.forced != null) {
data.forced = this.forced; data.forced = this.forced;
...@@ -6997,7 +6997,7 @@ export namespace ygopro { ...@@ -6997,7 +6997,7 @@ export namespace ygopro {
serialize(w?: pb_1.BinaryWriter): Uint8Array | void { serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter(); const writer = w || new pb_1.BinaryWriter();
if (this.player != 0) writer.writeInt32(1, this.player); if (this.player != 0) writer.writeInt32(1, this.player);
if (this.special != false) writer.writeBool(2, this.special); if (this.special_count != 0) writer.writeInt32(2, this.special_count);
if (this.forced != false) writer.writeBool(3, this.forced); if (this.forced != false) writer.writeBool(3, this.forced);
if (this.hint0 != 0) writer.writeInt32(4, this.hint0); if (this.hint0 != 0) writer.writeInt32(4, this.hint0);
if (this.hint1 != 0) writer.writeInt32(5, this.hint1); if (this.hint1 != 0) writer.writeInt32(5, this.hint1);
...@@ -7025,7 +7025,7 @@ export namespace ygopro { ...@@ -7025,7 +7025,7 @@ export namespace ygopro {
message.player = reader.readInt32(); message.player = reader.readInt32();
break; break;
case 2: case 2:
message.special = reader.readBool(); message.special_count = reader.readInt32();
break; break;
case 3: case 3:
message.forced = reader.readBool(); message.forced = reader.readBool();
......
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