refactor: Combine Equipment and Config Types #289
@ -582,20 +582,20 @@ export interface ILibraryPersonalProgress {
 | 
			
		||||
 | 
			
		||||
//this needs to be checked against ILoadoutDatabase
 | 
			
		||||
export interface ILoadOutPresets {
 | 
			
		||||
    NORMAL: ILoadoutConfig[];
 | 
			
		||||
    NORMAL_PVP: ILoadoutConfig[];
 | 
			
		||||
    LUNARO: ILoadoutConfig[];
 | 
			
		||||
    ARCHWING: ILoadoutConfig[];
 | 
			
		||||
    SENTINEL: ILoadoutConfig[];
 | 
			
		||||
    OPERATOR: ILoadoutConfig[];
 | 
			
		||||
    GEAR: ILoadoutConfig[];
 | 
			
		||||
    KDRIVE: ILoadoutConfig[];
 | 
			
		||||
    DATAKNIFE: ILoadoutConfig[];
 | 
			
		||||
    MECH: ILoadoutConfig[];
 | 
			
		||||
    OPERATOR_ADULT: ILoadoutConfig[];
 | 
			
		||||
    NORMAL: ILoadoutConfigClient[];
 | 
			
		||||
    NORMAL_PVP: ILoadoutConfigClient[];
 | 
			
		||||
    LUNARO: ILoadoutConfigClient[];
 | 
			
		||||
    ARCHWING: ILoadoutConfigClient[];
 | 
			
		||||
    SENTINEL: ILoadoutConfigClient[];
 | 
			
		||||
    OPERATOR: ILoadoutConfigClient[];
 | 
			
		||||
    GEAR: ILoadoutConfigClient[];
 | 
			
		||||
    KDRIVE: ILoadoutConfigClient[];
 | 
			
		||||
    DATAKNIFE: ILoadoutConfigClient[];
 | 
			
		||||
    MECH: ILoadoutConfigClient[];
 | 
			
		||||
    OPERATOR_ADULT: ILoadoutConfigClient[];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export interface ILoadoutConfig {
 | 
			
		||||
export interface ILoadoutConfigClient {
 | 
			
		||||
    FocusSchool?: FocusSchool;
 | 
			
		||||
    PresetIcon?: string;
 | 
			
		||||
    Favorite?: boolean;
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,7 @@
 | 
			
		||||
import { IOid } from "@/src/types/commonTypes";
 | 
			
		||||
import { IItemConfig, IOperatorConfigClient } from "@/src/types/inventoryTypes/commonInventoryTypes";
 | 
			
		||||
import { Types } from "mongoose";
 | 
			
		||||
import { ILoadoutConfig } from "./inventoryTypes/inventoryTypes";
 | 
			
		||||
import { ILoadoutConfigClient } from "./inventoryTypes/inventoryTypes";
 | 
			
		||||
 | 
			
		||||
export interface ISaveLoadoutRequest {
 | 
			
		||||
    LoadOuts: ILoadoutClient;
 | 
			
		||||
@ -68,8 +68,8 @@ export interface ILoadoutDatabase {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user