chore: improve ship customization stuff #2402

Merged
Sainan merged 2 commits from orbiter-scene into main 2025-07-04 15:19:15 -07:00
Showing only changes of commit f8711e9557 - Show all commits

View File

@ -125,25 +125,18 @@ export interface IPlacedDecosClient extends Omit<IPlacedDecosDatabase, "_id"> {
export interface ISetShipCustomizationsRequest { export interface ISetShipCustomizationsRequest {
ShipId: string; ShipId: string;
Customization: Customization; Customization: {
SkinFlavourItem?: string;
Colors?: IColor;
ShipAttachments?: IShipAttachments;
LevelDecosVisible?: boolean;
CustomJson?: string;
};
IsExterior: boolean; IsExterior: boolean;
AirSupportPower?: string; AirSupportPower?: string;
IsShop?: boolean; 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 { export interface IShipDecorationsRequest {
Type: string; Type: string;
Pos: [number, number, number]; Pos: [number, number, number];
@ -206,8 +199,8 @@ export interface IFavouriteLoadoutDatabase {
export interface ITailorShopDatabase { export interface ITailorShopDatabase {
FavouriteLoadouts: IFavouriteLoadoutDatabase[]; FavouriteLoadouts: IFavouriteLoadoutDatabase[];
Colors?: IColor; Colors?: IColor;
CustomJson: string; CustomJson?: string;
LevelDecosVisible: boolean; LevelDecosVisible?: boolean;
Rooms: IRoom[]; Rooms: IRoom[];
} }