From 49e10cf8589d0f6a2b1856252fe40b6495692e61 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Fri, 14 Oct 2022 07:44:30 -0500 Subject: [PATCH] Implement reading content packs --- src/data/Room.vue | 1 + src/data/RoomsDialog.vue | 1 + src/data/contentPackLoader.ts | 1347 +++++++++++++++++++++++++++++ src/data/contentPackResolver.ts | 0 src/data/contentPackValidation.ts | 282 ++++++ src/data/contentPacks/core.json | 310 +++---- src/data/projEntry.tsx | 50 +- src/data/socket.tsx | 10 + src/game/persistence.ts | 3 + 9 files changed, 1849 insertions(+), 155 deletions(-) create mode 100644 src/data/contentPackLoader.ts create mode 100644 src/data/contentPackResolver.ts create mode 100644 src/data/contentPackValidation.ts diff --git a/src/data/Room.vue b/src/data/Room.vue index 869eac5..73eeb1c 100644 --- a/src/data/Room.vue +++ b/src/data/Room.vue @@ -39,6 +39,7 @@ import { ref, toRefs, watch } from "vue"; import Text from "components/fields/Text.vue"; import { Direction } from "util/common"; import Tooltip from "features/tooltips/Tooltip.vue"; +import { ClientRoomData } from "alkatest-common/types"; const _props = defineProps<{ isPrivate: boolean; diff --git a/src/data/RoomsDialog.vue b/src/data/RoomsDialog.vue index c1f4604..b20bf26 100644 --- a/src/data/RoomsDialog.vue +++ b/src/data/RoomsDialog.vue @@ -60,6 +60,7 @@