forked from OpenWF/SpaceNinjaServer
chore: generate inventory equipment types from equipmentKeys (#972)
Reviewed-on: OpenWF/SpaceNinjaServer#972 Co-authored-by: Sainan <sainan@calamity.inc> Co-committed-by: Sainan <sainan@calamity.inc>
This commit is contained in:
parent
ac6ac19199
commit
815d18623e
@ -12,30 +12,35 @@ import {
|
|||||||
IOperatorConfigDatabase
|
IOperatorConfigDatabase
|
||||||
} from "@/src/types/inventoryTypes/commonInventoryTypes";
|
} from "@/src/types/inventoryTypes/commonInventoryTypes";
|
||||||
|
|
||||||
|
export type InventoryDatabaseEquipment = {
|
||||||
|
[_ in TEquipmentKey]: IEquipmentDatabase[];
|
||||||
|
};
|
||||||
|
|
||||||
export interface IInventoryDatabase
|
export interface IInventoryDatabase
|
||||||
extends Omit<
|
extends Omit<
|
||||||
IInventoryClient,
|
IInventoryClient,
|
||||||
| "TrainingDate"
|
| "TrainingDate"
|
||||||
| "LoadOutPresets"
|
| "LoadOutPresets"
|
||||||
| "Mailbox"
|
| "Mailbox"
|
||||||
| "GuildId"
|
| "GuildId"
|
||||||
| "PendingRecipes"
|
| "PendingRecipes"
|
||||||
| "Created"
|
| "Created"
|
||||||
| "QuestKeys"
|
| "QuestKeys"
|
||||||
| "BlessingCooldown"
|
| "BlessingCooldown"
|
||||||
| "Ships"
|
| "Ships"
|
||||||
| "WeaponSkins"
|
| "WeaponSkins"
|
||||||
| "Upgrades"
|
| "Upgrades"
|
||||||
| "CrewShipSalvagedWeaponSkins"
|
| "CrewShipSalvagedWeaponSkins"
|
||||||
| "CrewShipWeaponSkins"
|
| "CrewShipWeaponSkins"
|
||||||
| "AdultOperatorLoadOuts"
|
| "AdultOperatorLoadOuts"
|
||||||
| "OperatorLoadOuts"
|
| "OperatorLoadOuts"
|
||||||
| "KahlLoadOuts"
|
| "KahlLoadOuts"
|
||||||
| "InfestedFoundry"
|
| "InfestedFoundry"
|
||||||
| "DialogueHistory"
|
| "DialogueHistory"
|
||||||
| "KubrowPetEggs"
|
| "KubrowPetEggs"
|
||||||
| TEquipmentKey
|
| TEquipmentKey
|
||||||
> {
|
>,
|
||||||
|
InventoryDatabaseEquipment {
|
||||||
accountOwnerId: Types.ObjectId;
|
accountOwnerId: Types.ObjectId;
|
||||||
Created: Date;
|
Created: Date;
|
||||||
TrainingDate: Date;
|
TrainingDate: Date;
|
||||||
@ -56,30 +61,6 @@ export interface IInventoryDatabase
|
|||||||
InfestedFoundry?: IInfestedFoundryDatabase;
|
InfestedFoundry?: IInfestedFoundryDatabase;
|
||||||
DialogueHistory?: IDialogueHistoryDatabase;
|
DialogueHistory?: IDialogueHistoryDatabase;
|
||||||
KubrowPetEggs?: IKubrowPetEggDatabase[];
|
KubrowPetEggs?: IKubrowPetEggDatabase[];
|
||||||
|
|
||||||
Suits: IEquipmentDatabase[];
|
|
||||||
LongGuns: IEquipmentDatabase[];
|
|
||||||
Pistols: IEquipmentDatabase[];
|
|
||||||
Melee: IEquipmentDatabase[];
|
|
||||||
SpecialItems: IEquipmentDatabase[];
|
|
||||||
Sentinels: IEquipmentDatabase[];
|
|
||||||
SentinelWeapons: IEquipmentDatabase[];
|
|
||||||
SpaceSuits: IEquipmentDatabase[];
|
|
||||||
SpaceGuns: IEquipmentDatabase[];
|
|
||||||
SpaceMelee: IEquipmentDatabase[];
|
|
||||||
Hoverboards: IEquipmentDatabase[];
|
|
||||||
OperatorAmps: IEquipmentDatabase[];
|
|
||||||
MoaPets: IEquipmentDatabase[];
|
|
||||||
Scoops: IEquipmentDatabase[];
|
|
||||||
Horses: IEquipmentDatabase[];
|
|
||||||
DrifterGuns: IEquipmentDatabase[];
|
|
||||||
DrifterMelee: IEquipmentDatabase[];
|
|
||||||
Motorcycles: IEquipmentDatabase[];
|
|
||||||
CrewShips: IEquipmentDatabase[];
|
|
||||||
DataKnives: IEquipmentDatabase[];
|
|
||||||
MechSuits: IEquipmentDatabase[];
|
|
||||||
CrewShipHarnesses: IEquipmentDatabase[];
|
|
||||||
KubrowPets: IEquipmentDatabase[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IQuestKeyDatabase {
|
export interface IQuestKeyDatabase {
|
||||||
@ -179,30 +160,11 @@ export interface IDailyAffiliations {
|
|||||||
DailyAffiliationHex: number;
|
DailyAffiliationHex: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IInventoryClient extends IDailyAffiliations {
|
export type InventoryClientEquipment = {
|
||||||
Suits: IEquipmentClient[];
|
[_ in TEquipmentKey]: IEquipmentClient[];
|
||||||
LongGuns: IEquipmentClient[];
|
};
|
||||||
Pistols: IEquipmentClient[];
|
|
||||||
Melee: IEquipmentClient[];
|
export interface IInventoryClient extends IDailyAffiliations, InventoryClientEquipment {
|
||||||
SpecialItems: IEquipmentClient[];
|
|
||||||
Sentinels: IEquipmentClient[];
|
|
||||||
SentinelWeapons: IEquipmentClient[];
|
|
||||||
SpaceSuits: IEquipmentClient[];
|
|
||||||
SpaceGuns: IEquipmentClient[];
|
|
||||||
SpaceMelee: IEquipmentClient[];
|
|
||||||
Hoverboards: IEquipmentClient[];
|
|
||||||
OperatorAmps: IEquipmentClient[];
|
|
||||||
MoaPets: IEquipmentClient[];
|
|
||||||
Scoops: IEquipmentClient[];
|
|
||||||
Horses: IEquipmentClient[];
|
|
||||||
DrifterGuns: IEquipmentClient[];
|
|
||||||
DrifterMelee: IEquipmentClient[];
|
|
||||||
Motorcycles: IEquipmentClient[];
|
|
||||||
CrewShips: IEquipmentClient[];
|
|
||||||
DataKnives: IEquipmentClient[];
|
|
||||||
MechSuits: IEquipmentClient[];
|
|
||||||
CrewShipHarnesses: IEquipmentClient[];
|
|
||||||
KubrowPets: IEquipmentClient[];
|
|
||||||
AdultOperatorLoadOuts: IOperatorConfigClient[];
|
AdultOperatorLoadOuts: IOperatorConfigClient[];
|
||||||
OperatorLoadOuts: IOperatorConfigClient[];
|
OperatorLoadOuts: IOperatorConfigClient[];
|
||||||
KahlLoadOuts: IOperatorConfigClient[];
|
KahlLoadOuts: IOperatorConfigClient[];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user