SpaceNinjaServer/src/types/shipTypes.ts

31 lines
635 B
TypeScript
Raw Normal View History

2023-06-05 04:16:49 +08:00
import { Types } from "mongoose";
import { IOid } from "@/src/types/commonTypes";
2023-06-05 04:16:49 +08:00
2023-06-05 00:17:01 +02:00
export interface IShip {
2023-06-05 04:16:49 +08:00
ShipOwnerId: Types.ObjectId;
Ship: IShipResponse;
Apartment: IApartment;
LoadOutInventory: { LoadOutPresets: Types.ObjectId };
2023-06-05 04:16:49 +08:00
}
export interface IShipResponse extends IShipDatabase {
ShipId: IOid;
2023-06-05 00:17:01 +02:00
}
export interface IShipDatabase {
Rooms: IRooms[];
2023-06-05 04:16:49 +08:00
Features: string[];
ContentUrlSignature: string;
}
// TODO: add Apartment.Gardening
export interface IRooms {
2023-06-05 04:16:49 +08:00
Name: string;
MaxCapacity: number;
}
export interface IApartment {
Rooms: IRooms[];
2023-06-05 04:16:49 +08:00
FavouriteLoadouts: string[];
}