From f8711e955795c02e9ab1042c3e74b58d7d74ac81 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Fri, 4 Jul 2025 07:28:07 +0200 Subject: [PATCH] yet another duplicated ShipAttachments, holy fucking shit --- src/types/personalRoomsTypes.ts | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/src/types/personalRoomsTypes.ts b/src/types/personalRoomsTypes.ts index 0a5d9229..026b0c45 100644 --- a/src/types/personalRoomsTypes.ts +++ b/src/types/personalRoomsTypes.ts @@ -125,25 +125,18 @@ export interface IPlacedDecosClient extends Omit { export interface ISetShipCustomizationsRequest { ShipId: string; - Customization: Customization; + Customization: { + SkinFlavourItem?: string; + Colors?: IColor; + ShipAttachments?: IShipAttachments; + LevelDecosVisible?: boolean; + CustomJson?: string; + }; IsExterior: boolean; AirSupportPower?: string; IsShop?: boolean; } -export interface Customization { - SkinFlavourItem: string; - Colors: IColor; - ShipAttachments: ShipAttachments; - LevelDecosVisible: boolean; - CustomJson: string; -} - -//TODO: check for more attachments -export interface ShipAttachments { - HOOD_ORNAMENT: string; -} - export interface IShipDecorationsRequest { Type: string; Pos: [number, number, number]; @@ -206,8 +199,8 @@ export interface IFavouriteLoadoutDatabase { export interface ITailorShopDatabase { FavouriteLoadouts: IFavouriteLoadoutDatabase[]; Colors?: IColor; - CustomJson: string; - LevelDecosVisible: boolean; + CustomJson?: string; + LevelDecosVisible?: boolean; Rooms: IRoom[]; }