mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-19 05:57:42 +01:00
Make some stuff work.
This commit is contained in:
parent
4eb46a9fff
commit
e79ee55f3b
8 changed files with 69 additions and 12 deletions
|
|
@ -247,7 +247,7 @@ public partial class Design : DesignData, ISavable
|
|||
if (json == null)
|
||||
return true;
|
||||
|
||||
var customize = design.ModelData.Customize;
|
||||
ref var customize = ref design.ModelData.Customize;
|
||||
foreach (var idx in Enum.GetValues<CustomizeIndex>())
|
||||
{
|
||||
var tok = json[idx.ToString()];
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ public struct ModelData
|
|||
public ModelData(CharacterWeapon mainHand)
|
||||
=> MainHand = mainHand;
|
||||
|
||||
public CharacterArmor Armor(EquipSlot slot)
|
||||
public readonly CharacterArmor Armor(EquipSlot slot)
|
||||
=> slot switch
|
||||
{
|
||||
EquipSlot.MainHand => MainHand.ToArmor(),
|
||||
|
|
@ -72,7 +72,7 @@ public struct ModelData
|
|||
_ => CharacterArmor.Empty,
|
||||
};
|
||||
|
||||
public CharacterWeapon Piece(EquipSlot slot)
|
||||
public readonly CharacterWeapon Piece(EquipSlot slot)
|
||||
=> slot switch
|
||||
{
|
||||
EquipSlot.MainHand => MainHand,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue