From b5012c03f476e5d07e1b7008d9687d241cff532c Mon Sep 17 00:00:00 2001 From: xeon Date: Tue, 3 Feb 2026 23:55:58 +0300 Subject: [PATCH] chore(Tables): add TrackMapPointTable --- assets/tables/TrackMapPointTable.json | 327 ++++++++++++++++++++++ gamesv/src/Assets/Tables.zig | 2 + gamesv/src/Assets/Tables/MapPointData.zig | 10 + 3 files changed, 339 insertions(+) create mode 100644 assets/tables/TrackMapPointTable.json create mode 100644 gamesv/src/Assets/Tables/MapPointData.zig diff --git a/assets/tables/TrackMapPointTable.json b/assets/tables/TrackMapPointTable.json new file mode 100644 index 0000000..ea972d1 --- /dev/null +++ b/assets/tables/TrackMapPointTable.json @@ -0,0 +1,327 @@ +[ + { + "Key": "1", + "Value": { + "end": "map01_lv002", + "pos": { + "x": -660.3, + "y": 119.32, + "z": -126.9 + }, + "quest": "", + "start": "map01_lv001" + } + }, + { + "Key": "24", + "Value": { + "end": "map02_lv004", + "pos": { + "x": 118.47, + "y": 137.65, + "z": 0.5 + }, + "quest": "", + "start": "indie_dg007" + } + }, + { + "Key": "11", + "Value": { + "end": "map02_lv002", + "pos": { + "x": -961.8, + "y": 263.46, + "z": -895.33 + }, + "quest": "e6m5_q#3", + "start": "map02_lv001" + } + }, + { + "Key": "15", + "Value": { + "end": "map02_lv002", + "pos": { + "x": -1711.17, + "y": 408.86, + "z": -338.58 + }, + "quest": "", + "start": "indie_dg005" + } + }, + { + "Key": "3", + "Value": { + "end": "map01_lv005", + "pos": { + "x": 255.0, + "y": 99.0, + "z": -340.0 + }, + "quest": "", + "start": "map01_lv001" + } + }, + { + "Key": "14", + "Value": { + "end": "map02_lv001", + "pos": { + "x": -718.6, + "y": 256.91, + "z": -896.89 + }, + "quest": "", + "start": "map02_lv002" + } + }, + { + "Key": "2", + "Value": { + "end": "map01_lv003", + "pos": { + "x": 129.0, + "y": 73.0, + "z": -567.0 + }, + "quest": "", + "start": "map01_lv001" + } + }, + { + "Key": "16", + "Value": { + "end": "indie_dg005", + "pos": { + "x": -1443.57, + "y": 324.2216, + "z": -336.5857 + }, + "quest": "", + "start": "map02_lv002" + } + }, + { + "Key": "25", + "Value": { + "end": "map02_lv001", + "pos": { + "x": -1151.73, + "y": 206.17, + "z": -1355.25 + }, + "quest": "", + "start": "map02_lv004" + } + }, + { + "Key": "13", + "Value": { + "end": "map02_lv002", + "pos": { + "x": -719.07, + "y": 257.85, + "z": -895.02 + }, + "quest": "", + "start": "map02_lv001" + } + }, + { + "Key": "9", + "Value": { + "end": "map01_lv007", + "pos": { + "x": 127.0, + "y": 93.5, + "z": 711.0 + }, + "quest": "", + "start": "map01_lv006" + } + }, + { + "Key": "23", + "Value": { + "end": "indie_dg007", + "pos": { + "x": -1087.61, + "y": 38.05, + "z": -864.19 + }, + "quest": "", + "start": "map02_lv004" + } + }, + { + "Key": "8", + "Value": { + "end": "map01_lv005", + "pos": { + "x": 682.0, + "y": 54.0, + "z": -1.0 + }, + "quest": "", + "start": "map01_lv006" + } + }, + { + "Key": "19", + "Value": { + "end": "map02_lv004", + "pos": { + "x": -1384.38, + "y": 276.66, + "z": -896.44 + }, + "quest": "", + "start": "map02_lv002" + } + }, + { + "Key": "17", + "Value": { + "end": "map02_lv003", + "pos": { + "x": -529.4, + "y": 262.25, + "z": -1024.36 + }, + "quest": "", + "start": "map02_lv001" + } + }, + { + "Key": "10", + "Value": { + "end": "map01_lv006", + "pos": { + "x": 129.0, + "y": 93.5, + "z": 714.0 + }, + "quest": "", + "start": "map01_lv007" + } + }, + { + "Key": "20", + "Value": { + "end": "map02_lv002", + "pos": { + "x": -1383.36, + "y": 278.66, + "z": -895.34 + }, + "quest": "", + "start": "map02_lv004" + } + }, + { + "Key": "18", + "Value": { + "end": "map02_lv001", + "pos": { + "x": -529.7, + "y": 262.25, + "z": -1023.57 + }, + "quest": "", + "start": "map02_lv003" + } + }, + { + "Key": "22", + "Value": { + "end": "map02_lv002", + "pos": { + "x": -640.41, + "y": 253.97, + "z": -326.63 + }, + "quest": "", + "start": "map02_lv005" + } + }, + { + "Key": "5", + "Value": { + "end": "map01_lv001", + "pos": { + "x": 127.0, + "y": 73.0, + "z": -567.0 + }, + "quest": "", + "start": "map01_lv003" + } + }, + { + "Key": "4", + "Value": { + "end": "map01_lv001", + "pos": { + "x": -656.74, + "y": 119.62, + "z": -129.1 + }, + "quest": "", + "start": "map01_lv002" + } + }, + { + "Key": "21", + "Value": { + "end": "map02_lv005", + "pos": { + "x": -639.63, + "y": 253.97, + "z": -326.32 + }, + "quest": "", + "start": "map02_lv002" + } + }, + { + "Key": "7", + "Value": { + "end": "map01_lv006", + "pos": { + "x": 682.0, + "y": 54.0, + "z": 1.0 + }, + "quest": "", + "start": "map01_lv005" + } + }, + { + "Key": "12", + "Value": { + "end": "map02_lv001", + "pos": { + "x": -961.8, + "y": 264.13, + "z": -897.53 + }, + "quest": "e6m5_q#3", + "start": "map02_lv002" + } + }, + { + "Key": "6", + "Value": { + "end": "map01_lv001", + "pos": { + "x": 257.0, + "y": 99.0, + "z": -341.0 + }, + "quest": "", + "start": "map01_lv005" + } + } +] diff --git a/gamesv/src/Assets/Tables.zig b/gamesv/src/Assets/Tables.zig index 0baad03..7583716 100644 --- a/gamesv/src/Assets/Tables.zig +++ b/gamesv/src/Assets/Tables.zig @@ -14,6 +14,7 @@ pub const SkillPatchDataBundleList = @import("Tables/SkillPatchDataBundleList.zi pub const WeaponBasicData = @import("Tables/WeaponBasicData.zig"); pub const CharWpnRecommendData = @import("Tables/CharWpnRecommendData.zig"); pub const DomainData = @import("Tables/DomainData.zig"); +pub const MapPointData = @import("Tables/MapPointData.zig"); pub const StrToNum = struct { pub const file = "StrIdNumTable.json"; @@ -32,6 +33,7 @@ str_to_num: StringArrayHashMap(StrToNum), num_to_str: StringArrayHashMap(NumToStr), char_wpn_recommend: StringArrayHashMap(CharWpnRecommendData), domain_data: StringArrayHashMap(DomainData), +track_map_point: StringArrayHashMap(MapPointData), pub const LoadError = error{ NotStarted, diff --git a/gamesv/src/Assets/Tables/MapPointData.zig b/gamesv/src/Assets/Tables/MapPointData.zig new file mode 100644 index 0000000..a2a00ad --- /dev/null +++ b/gamesv/src/Assets/Tables/MapPointData.zig @@ -0,0 +1,10 @@ +pub const file = "TrackMapPointTable.json"; + +start: []const u8, +end: []const u8, +quest: []const u8, +pos: struct { + x: f32, + y: f32, + z: f32, +},