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>(
{
FocusSchool: String,
PresetIcon: String,
Favorite: Boolean,
n: String,
s: EquipmentSelectionSchema,
p: EquipmentSelectionSchema,
l: EquipmentSelectionSchema,
m: EquipmentSelectionSchema
n: String, // Loadout name
s: EquipmentSelectionSchema, // Suit
l: EquipmentSelectionSchema, // Primary weapon
p: EquipmentSelectionSchema, // Secondary weapon
m: EquipmentSelectionSchema, // Melee weapon
h: EquipmentSelectionSchema, // Gravimag weapon
a: EquipmentSelectionSchema // Necromech exalted weapon
},
{
id: false

View File

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