diff options
Diffstat (limited to 'features/dungeonMap2/DungeonRoomStaticData.js')
-rw-r--r-- | features/dungeonMap2/DungeonRoomStaticData.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/features/dungeonMap2/DungeonRoomStaticData.js b/features/dungeonMap2/DungeonRoomStaticData.js deleted file mode 100644 index 75d5b1e..0000000 --- a/features/dungeonMap2/DungeonRoomStaticData.js +++ /dev/null @@ -1,19 +0,0 @@ -class DungeonRoomStaticData { - constructor() { - this.fullRoomData = JSON.parse(FileLib.read("SoopyV2", "data/roomdata.json")) - - this.idMap = new Map() - this.fullRoomData.forEach((d, i) => { - d.id.forEach(id => { - this.idMap.set(id, i) - }) - this.idMap.set(d.index, i) - }) - } - - getDataFromId(id) { - return this.fullRoomData[this.idMap.get(id)] - } -} - -export default new DungeonRoomStaticData()
\ No newline at end of file |