distinguish between client and database loadout config
This commit is contained in:
parent
584a70046f
commit
c1632bafc4
@ -582,20 +582,20 @@ export interface ILibraryPersonalProgress {
|
|||||||
|
|
||||||
//this needs to be checked against ILoadoutDatabase
|
//this needs to be checked against ILoadoutDatabase
|
||||||
export interface ILoadOutPresets {
|
export interface ILoadOutPresets {
|
||||||
NORMAL: ILoadoutConfig[];
|
NORMAL: ILoadoutConfigClient[];
|
||||||
NORMAL_PVP: ILoadoutConfig[];
|
NORMAL_PVP: ILoadoutConfigClient[];
|
||||||
LUNARO: ILoadoutConfig[];
|
LUNARO: ILoadoutConfigClient[];
|
||||||
ARCHWING: ILoadoutConfig[];
|
ARCHWING: ILoadoutConfigClient[];
|
||||||
SENTINEL: ILoadoutConfig[];
|
SENTINEL: ILoadoutConfigClient[];
|
||||||
OPERATOR: ILoadoutConfig[];
|
OPERATOR: ILoadoutConfigClient[];
|
||||||
GEAR: ILoadoutConfig[];
|
GEAR: ILoadoutConfigClient[];
|
||||||
KDRIVE: ILoadoutConfig[];
|
KDRIVE: ILoadoutConfigClient[];
|
||||||
DATAKNIFE: ILoadoutConfig[];
|
DATAKNIFE: ILoadoutConfigClient[];
|
||||||
MECH: ILoadoutConfig[];
|
MECH: ILoadoutConfigClient[];
|
||||||
OPERATOR_ADULT: ILoadoutConfig[];
|
OPERATOR_ADULT: ILoadoutConfigClient[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ILoadoutConfig {
|
export interface ILoadoutConfigClient {
|
||||||
FocusSchool?: FocusSchool;
|
FocusSchool?: FocusSchool;
|
||||||
PresetIcon?: string;
|
PresetIcon?: string;
|
||||||
Favorite?: boolean;
|
Favorite?: boolean;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { IOid } from "@/src/types/commonTypes";
|
import { IOid } from "@/src/types/commonTypes";
|
||||||
import { IItemConfig, IOperatorConfigClient } from "@/src/types/inventoryTypes/commonInventoryTypes";
|
import { IItemConfig, IOperatorConfigClient } from "@/src/types/inventoryTypes/commonInventoryTypes";
|
||||||
import { Types } from "mongoose";
|
import { Types } from "mongoose";
|
||||||
import { ILoadoutConfig } from "./inventoryTypes/inventoryTypes";
|
import { ILoadoutConfigClient } from "./inventoryTypes/inventoryTypes";
|
||||||
|
|
||||||
export interface ISaveLoadoutRequest {
|
export interface ISaveLoadoutRequest {
|
||||||
LoadOuts: ILoadoutClient;
|
LoadOuts: ILoadoutClient;
|
||||||
@ -68,8 +68,8 @@ export interface ILoadoutDatabase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ILoadoutEntry {
|
export interface ILoadoutEntry {
|
||||||
[key: string]: ILoadoutConfig;
|
[key: string]: ILoadoutConfigClient;
|
||||||
}
|
}
|
||||||
export interface ILoadoutConfigDatabase extends Omit<ILoadoutConfig, "ItemId"> {
|
export interface ILoadoutConfigDatabase extends Omit<ILoadoutConfigClient, "ItemId"> {
|
||||||
_id: Types.ObjectId;
|
_id: Types.ObjectId;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user