From 4394a9814f3dd51b2eefcb4ec190a241e51e2ce1 Mon Sep 17 00:00:00 2001 From: fan Date: Fri, 15 Dec 2023 10:03:58 +0800 Subject: [PATCH] =?UTF-8?q?proto=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/protos/stationLayoutGraphics.ts | 48 ++++++++++++++--------------- xian-ncc-da-message | 2 +- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/protos/stationLayoutGraphics.ts b/src/protos/stationLayoutGraphics.ts index 151a76e..62baf48 100644 --- a/src/protos/stationLayoutGraphics.ts +++ b/src/protos/stationLayoutGraphics.ts @@ -1731,8 +1731,8 @@ export namespace graphicData { direction?: string; refStation?: string; up?: boolean; - nrefStation?: number; refSectionId?: string; + nrefStation?: number; nrefSectionId?: number; }) { super(); @@ -1756,12 +1756,12 @@ export namespace graphicData { if ("up" in data && data.up != undefined) { this.up = data.up; } - if ("nrefStation" in data && data.nrefStation != undefined) { - this.nrefStation = data.nrefStation; - } if ("refSectionId" in data && data.refSectionId != undefined) { this.refSectionId = data.refSectionId; } + if ("nrefStation" in data && data.nrefStation != undefined) { + this.nrefStation = data.nrefStation; + } if ("nrefSectionId" in data && data.nrefSectionId != undefined) { this.nrefSectionId = data.nrefSectionId; } @@ -1806,16 +1806,16 @@ export namespace graphicData { set up(value: boolean) { pb_1.Message.setField(this, 7, value); } - get nrefStation() { - return pb_1.Message.getFieldWithDefault(this, 8, 0) as number; - } - set nrefStation(value: number) { - pb_1.Message.setField(this, 8, value); - } get refSectionId() { - return pb_1.Message.getFieldWithDefault(this, 9, "") as string; + return pb_1.Message.getFieldWithDefault(this, 8, "") as string; } set refSectionId(value: string) { + pb_1.Message.setField(this, 8, value); + } + get nrefStation() { + return pb_1.Message.getFieldWithDefault(this, 9, 0) as number; + } + set nrefStation(value: number) { pb_1.Message.setField(this, 9, value); } get nrefSectionId() { @@ -1831,8 +1831,8 @@ export namespace graphicData { direction?: string; refStation?: string; up?: boolean; - nrefStation?: number; refSectionId?: string; + nrefStation?: number; nrefSectionId?: number; }): Platform { const message = new Platform({}); @@ -1854,12 +1854,12 @@ export namespace graphicData { if (data.up != null) { message.up = data.up; } - if (data.nrefStation != null) { - message.nrefStation = data.nrefStation; - } if (data.refSectionId != null) { message.refSectionId = data.refSectionId; } + if (data.nrefStation != null) { + message.nrefStation = data.nrefStation; + } if (data.nrefSectionId != null) { message.nrefSectionId = data.nrefSectionId; } @@ -1873,8 +1873,8 @@ export namespace graphicData { direction?: string; refStation?: string; up?: boolean; - nrefStation?: number; refSectionId?: string; + nrefStation?: number; nrefSectionId?: number; } = {}; if (this.common != null) { @@ -1895,12 +1895,12 @@ export namespace graphicData { if (this.up != null) { data.up = this.up; } - if (this.nrefStation != null) { - data.nrefStation = this.nrefStation; - } if (this.refSectionId != null) { data.refSectionId = this.refSectionId; } + if (this.nrefStation != null) { + data.nrefStation = this.nrefStation; + } if (this.nrefSectionId != null) { data.nrefSectionId = this.nrefSectionId; } @@ -1922,10 +1922,10 @@ export namespace graphicData { writer.writeString(6, this.refStation); if (this.up != false) writer.writeBool(7, this.up); - if (this.nrefStation != 0) - writer.writeUint32(8, this.nrefStation); if (this.refSectionId.length) - writer.writeString(9, this.refSectionId); + writer.writeString(8, this.refSectionId); + if (this.nrefStation != 0) + writer.writeUint32(9, this.nrefStation); if (this.nrefSectionId != 0) writer.writeUint32(10, this.nrefSectionId); if (!w) @@ -1956,10 +1956,10 @@ export namespace graphicData { message.up = reader.readBool(); break; case 8: - message.nrefStation = reader.readUint32(); + message.refSectionId = reader.readString(); break; case 9: - message.refSectionId = reader.readString(); + message.nrefStation = reader.readUint32(); break; case 10: message.nrefSectionId = reader.readUint32(); diff --git a/xian-ncc-da-message b/xian-ncc-da-message index 4e3b572..da9e750 160000 --- a/xian-ncc-da-message +++ b/xian-ncc-da-message @@ -1 +1 @@ -Subproject commit 4e3b572d415ebd5431d3100417fa3ef6634b17a7 +Subproject commit da9e750edd637bc55d440759f29ba429099cf184