Commit 041b09fc authored by Chunchi Che's avatar Chunchi Che

update ocgcore

parent e2056055
neos-protobuf @ 46f932a8
Subproject commit 702feb507a3e5cd31fdc8ee7d9e4b80e68f89923 Subproject commit 46f932a8ee77e72af15141612453709cdcfb6892
/** /**
* Generated by the protoc-gen-ts. DO NOT EDIT! * Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 3.21.5 * compiler version: 4.24.4
* source: idl/ocgcore.proto * source: idl/ocgcore.proto
* git: https://github.com/thesayyn/protoc-gen-ts */ * git: https://github.com/thesayyn/protoc-gen-ts */
import * as pb_1 from "google-protobuf"; import * as pb_1 from "google-protobuf";
...@@ -14732,7 +14732,7 @@ export namespace ygopro { ...@@ -14732,7 +14732,7 @@ export namespace ygopro {
if (this.overlay_cards != null) { if (this.overlay_cards != null) {
data.overlay_cards = this.overlay_cards; data.overlay_cards = this.overlay_cards;
} }
if (this.counters.size > 0) { if (this.counters != null) {
data.counters = (Object.fromEntries)(this.counters); data.counters = (Object.fromEntries)(this.counters);
} }
if (this.owner != null) { if (this.owner != null) {
...@@ -15507,23 +15507,70 @@ export namespace ygopro { ...@@ -15507,23 +15507,70 @@ export namespace ygopro {
} }
export class MsgSet extends pb_1.Message { export class MsgSet extends pb_1.Message {
#one_of_decls: number[][] = []; #one_of_decls: number[][] = [];
constructor(data?: any[] | {}) { constructor(data?: any[] | {
code?: number;
location?: CardLocation;
}) {
super(); super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") { } if (!Array.isArray(data) && typeof data == "object") {
if ("code" in data && data.code != undefined) {
this.code = data.code;
}
if ("location" in data && data.location != undefined) {
this.location = data.location;
}
}
}
get code() {
return pb_1.Message.getFieldWithDefault(this, 1, 0) as number;
}
set code(value: number) {
pb_1.Message.setField(this, 1, value);
}
get location() {
return pb_1.Message.getWrapperField(this, CardLocation, 2) as CardLocation;
} }
static fromObject(data: {}): MsgSet { set location(value: CardLocation) {
pb_1.Message.setWrapperField(this, 2, value);
}
get has_location() {
return pb_1.Message.getField(this, 2) != null;
}
static fromObject(data: {
code?: number;
location?: ReturnType<typeof CardLocation.prototype.toObject>;
}): MsgSet {
const message = new MsgSet({}); const message = new MsgSet({});
if (data.code != null) {
message.code = data.code;
}
if (data.location != null) {
message.location = CardLocation.fromObject(data.location);
}
return message; return message;
} }
toObject() { toObject() {
const data: {} = {}; const data: {
code?: number;
location?: ReturnType<typeof CardLocation.prototype.toObject>;
} = {};
if (this.code != null) {
data.code = this.code;
}
if (this.location != null) {
data.location = this.location.toObject();
}
return data; return data;
} }
serialize(): Uint8Array; serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void; serialize(w: pb_1.BinaryWriter): void;
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.code != 0)
writer.writeInt32(1, this.code);
if (this.has_location)
writer.writeMessage(2, this.location, () => this.location.serialize(writer));
if (!w) if (!w)
return writer.getResultBuffer(); return writer.getResultBuffer();
} }
...@@ -15533,6 +15580,12 @@ export namespace ygopro { ...@@ -15533,6 +15580,12 @@ export namespace ygopro {
if (reader.isEndGroup()) if (reader.isEndGroup())
break; break;
switch (reader.getFieldNumber()) { switch (reader.getFieldNumber()) {
case 1:
message.code = reader.readInt32();
break;
case 2:
reader.readMessage(message.location, () => message.location = CardLocation.deserialize(reader));
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