返回提交历史
Modified
src/models/inventoryModels/loadoutModel.ts
+8
-5
Modified
src/types/inventoryTypes/inventoryTypes.ts
+2
-2
XFEstudio/SpaceNinjaServer
improve: loadout config save FocusSchool (#408)
2178b752
代码差异
2 个文件
+10
-7
@@ -27,13 +27,16 @@ const EquipmentSelectionSchema = new Schema<IEquipmentSelection>(
27
27
28
28
const loadoutConfigSchema = new Schema<ILoadoutConfigDatabase>(
29
29
{
30
FocusSchool: String,
30
31
PresetIcon: String,
31
32
Favorite: Boolean,
32
n: String,
33
s: EquipmentSelectionSchema,
34
p: EquipmentSelectionSchema,
35
l: EquipmentSelectionSchema,
36
m: EquipmentSelectionSchema
33
n: String, // Loadout name
34
s: EquipmentSelectionSchema, // Suit
35
l: EquipmentSelectionSchema, // Primary weapon
36
p: EquipmentSelectionSchema, // Secondary weapon
37
m: EquipmentSelectionSchema, // Melee weapon
38
h: EquipmentSelectionSchema, // Gravimag weapon
39
a: EquipmentSelectionSchema // Necromech exalted weapon
37
40
},
38
41
{
39
42
id: false
@@ -621,11 +621,11 @@ export interface ILoadoutConfigClient {
621
621
Favorite?: boolean;
622
622
n?: string; // Loadout name
623
623
s?: IEquipmentSelection; // Suit
624
p?: IEquipmentSelection;
624
p?: IEquipmentSelection; // Secondary weapon
625
625
l?: IEquipmentSelection; // Primary weapon
626
626
m?: IEquipmentSelection; // Melee weapon
627
627
h?: IEquipmentSelection; // Gravimag weapon
628
a?: IEquipmentSelection;
628
a?: IEquipmentSelection; // Necromech exalted weapon
629
629
ItemId: IOid;
630
630
Remove?: boolean; // when client wants to remove a config, it only includes ItemId & Remove.
631
631
}