improve: loadout config save FocusSchool (#408)

This commit is contained in:
AMelonInsideLemon 2024-06-26 16:23:52 +02:00 committed by GitHub
parent 9b7127972d
commit 2178b7523e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 7 deletions

View File

@ -27,13 +27,16 @@ const EquipmentSelectionSchema = new Schema<IEquipmentSelection>(
const loadoutConfigSchema = new Schema<ILoadoutConfigDatabase>( const loadoutConfigSchema = new Schema<ILoadoutConfigDatabase>(
{ {
FocusSchool: String,
PresetIcon: String, PresetIcon: String,
Favorite: Boolean, Favorite: Boolean,
n: String, n: String, // Loadout name
s: EquipmentSelectionSchema, s: EquipmentSelectionSchema, // Suit
p: EquipmentSelectionSchema, l: EquipmentSelectionSchema, // Primary weapon
l: EquipmentSelectionSchema, p: EquipmentSelectionSchema, // Secondary weapon
m: EquipmentSelectionSchema m: EquipmentSelectionSchema, // Melee weapon
h: EquipmentSelectionSchema, // Gravimag weapon
a: EquipmentSelectionSchema // Necromech exalted weapon
}, },
{ {
id: false id: false

View File

@ -621,11 +621,11 @@ export interface ILoadoutConfigClient {
Favorite?: boolean; Favorite?: boolean;
n?: string; // Loadout name n?: string; // Loadout name
s?: IEquipmentSelection; // Suit s?: IEquipmentSelection; // Suit
p?: IEquipmentSelection; p?: IEquipmentSelection; // Secondary weapon
l?: IEquipmentSelection; // Primary weapon l?: IEquipmentSelection; // Primary weapon
m?: IEquipmentSelection; // Melee weapon m?: IEquipmentSelection; // Melee weapon
h?: IEquipmentSelection; // Gravimag weapon h?: IEquipmentSelection; // Gravimag weapon
a?: IEquipmentSelection; a?: IEquipmentSelection; // Necromech exalted weapon
ItemId: IOid; ItemId: IOid;
Remove?: boolean; // when client wants to remove a config, it only includes ItemId & Remove. Remove?: boolean; // when client wants to remove a config, it only includes ItemId & Remove.
} }