Merge branch 'local-test' of https://gitea.joylink.club/joylink/rts-sim-testing-client into local-test
All checks were successful
CI / Docker-Build (push) Successful in 2m19s

This commit is contained in:
fan 2024-05-20 15:48:17 +08:00
commit c6b36773ae

View File

@ -7528,6 +7528,8 @@ export namespace graphicData {
code?: string;
linkSection?: number;
centralizedStations?: number[];
duanNum?: number;
width?: number;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4], this.#one_of_decls);
@ -7544,6 +7546,12 @@ export namespace graphicData {
if ("centralizedStations" in data && data.centralizedStations != undefined) {
this.centralizedStations = data.centralizedStations;
}
if ("duanNum" in data && data.duanNum != undefined) {
this.duanNum = data.duanNum;
}
if ("width" in data && data.width != undefined) {
this.width = data.width;
}
}
}
get common() {
@ -7573,11 +7581,25 @@ export namespace graphicData {
set centralizedStations(value: number[]) {
pb_1.Message.setField(this, 4, value);
}
get duanNum() {
return pb_1.Message.getFieldWithDefault(this, 5, 0) as number;
}
set duanNum(value: number) {
pb_1.Message.setField(this, 5, value);
}
get width() {
return pb_1.Message.getFieldWithDefault(this, 6, 0) as number;
}
set width(value: number) {
pb_1.Message.setField(this, 6, value);
}
static fromObject(data: {
common?: ReturnType<typeof CommonInfo.prototype.toObject>;
code?: string;
linkSection?: number;
centralizedStations?: number[];
duanNum?: number;
width?: number;
}): CarWashing {
const message = new CarWashing({});
if (data.common != null) {
@ -7592,6 +7614,12 @@ export namespace graphicData {
if (data.centralizedStations != null) {
message.centralizedStations = data.centralizedStations;
}
if (data.duanNum != null) {
message.duanNum = data.duanNum;
}
if (data.width != null) {
message.width = data.width;
}
return message;
}
toObject() {
@ -7600,6 +7628,8 @@ export namespace graphicData {
code?: string;
linkSection?: number;
centralizedStations?: number[];
duanNum?: number;
width?: number;
} = {};
if (this.common != null) {
data.common = this.common.toObject();
@ -7613,6 +7643,12 @@ export namespace graphicData {
if (this.centralizedStations != null) {
data.centralizedStations = this.centralizedStations;
}
if (this.duanNum != null) {
data.duanNum = this.duanNum;
}
if (this.width != null) {
data.width = this.width;
}
return data;
}
serialize(): Uint8Array;
@ -7627,6 +7663,10 @@ export namespace graphicData {
writer.writeUint32(3, this.linkSection);
if (this.centralizedStations.length)
writer.writePackedUint32(4, this.centralizedStations);
if (this.duanNum != 0)
writer.writeUint32(5, this.duanNum);
if (this.width != 0)
writer.writeUint32(6, this.width);
if (!w)
return writer.getResultBuffer();
}
@ -7648,6 +7688,12 @@ export namespace graphicData {
case 4:
message.centralizedStations = reader.readPackedUint32();
break;
case 5:
message.duanNum = reader.readUint32();
break;
case 6:
message.width = reader.readUint32();
break;
default: reader.skipField();
}
}