forked from OpenWF/SpaceNinjaServer

Co-authored-by: nk <nk@fbi.rocks> Co-authored-by: Ordis <134585663+OrdisPrime@users.noreply.github.com>
29 lines
589 B
TypeScript
29 lines
589 B
TypeScript
import { Types } from "mongoose";
|
|
import { IOid } from "@/src/types/commonTypes";
|
|
|
|
export interface IShip {
|
|
ShipOwnerId: Types.ObjectId;
|
|
Ship: IShipClassResponse;
|
|
Apartment: IApartmentClass;
|
|
}
|
|
|
|
export interface IShipClassResponse extends IShipClassDatabase {
|
|
ShipId: IOid;
|
|
}
|
|
|
|
export interface IShipClassDatabase {
|
|
Rooms: IRoomsClass[];
|
|
Features: string[];
|
|
ContentUrlSignature: string;
|
|
}
|
|
|
|
export interface IRoomsClass {
|
|
Name: string;
|
|
MaxCapacity: number;
|
|
}
|
|
|
|
export interface IApartmentClass {
|
|
Rooms: IRoomsClass[];
|
|
FavouriteLoadouts: string[];
|
|
}
|