From 24d84f22fe20ce662836efd2f442ae907a331bf2 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 3 Dec 2023 14:48:20 +0100 Subject: [PATCH] feat: add metaGroupID to typeIDs datafile (#25) This is a breaking change, and not backwards compatible. --- convert.py | 2 ++ esf.proto | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/convert.py b/convert.py index dc08fbd..b05cb72 100644 --- a/convert.py +++ b/convert.py @@ -66,6 +66,8 @@ def convert_type_ids(path): pb2.entries[id].factionID = entry["factionID"] if "marketGroupID" in entry: pb2.entries[id].marketGroupID = entry["marketGroupID"] + if "metaGroupID" in entry: + pb2.entries[id].metaGroupID = entry["metaGroupID"] if "capacity" in entry: pb2.entries[id].capacity = entry["capacity"] if "mass" in entry: diff --git a/esf.proto b/esf.proto index 650dc42..388b3c2 100644 --- a/esf.proto +++ b/esf.proto @@ -30,10 +30,11 @@ message TypeIDs { optional int32 factionID = 5; optional int32 marketGroupID = 6; - optional float capacity = 7; - optional float mass = 8; - optional float radius = 9; - optional float volume = 10; + optional int32 metaGroupID = 7; + optional float capacity = 8; + optional float mass = 9; + optional float radius = 10; + optional float volume = 11; } map entries = 1;