SpaceNinjaServer/src/types/shipTypes.ts
OrdisPrime dd99e8782c
saveLoadout and misc. (#99)
Co-authored-by: Matej Voboril <tobiah@pm.me>
2023-12-14 17:34:15 +01:00

31 lines
635 B
TypeScript

import { Types } from "mongoose";
import { IOid } from "@/src/types/commonTypes";
export interface IShip {
ShipOwnerId: Types.ObjectId;
Ship: IShipResponse;
Apartment: IApartment;
LoadOutInventory: { LoadOutPresets: Types.ObjectId };
}
export interface IShipResponse extends IShipDatabase {
ShipId: IOid;
}
export interface IShipDatabase {
Rooms: IRooms[];
Features: string[];
ContentUrlSignature: string;
}
// TODO: add Apartment.Gardening
export interface IRooms {
Name: string;
MaxCapacity: number;
}
export interface IApartment {
Rooms: IRooms[];
FavouriteLoadouts: string[];
}