All checks were successful
Build / build (pull_request) Successful in 1m1s
The only functionally relevant change is that orbiter scenes are now saved via SkinFlavourItem (as of U39?). The rest is cleanup of the types because the ship customization stuff was duplicated all over the place.
27 lines
640 B
TypeScript
27 lines
640 B
TypeScript
import { Schema } from "mongoose";
|
|
import { IColor } from "@/src/types/inventoryTypes/commonInventoryTypes";
|
|
import { IShipCustomization } from "@/src/types/personalRoomsTypes";
|
|
|
|
export const colorSchema = new Schema<IColor>(
|
|
{
|
|
t0: Number,
|
|
t1: Number,
|
|
t2: Number,
|
|
t3: Number,
|
|
en: Number,
|
|
e1: Number,
|
|
m0: Number,
|
|
m1: Number
|
|
},
|
|
{ _id: false }
|
|
);
|
|
|
|
export const shipCustomizationSchema = new Schema<IShipCustomization>(
|
|
{
|
|
SkinFlavourItem: String,
|
|
Colors: colorSchema,
|
|
ShipAttachments: { HOOD_ORNAMENT: String }
|
|
},
|
|
{ _id: false }
|
|
);
|