mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 20:54:16 +01:00
Some readonlys.
This commit is contained in:
parent
e02de6de5a
commit
9255f2bb2b
3 changed files with 6 additions and 6 deletions
|
|
@ -28,13 +28,13 @@ public struct CharacterArmor : IEquatable<CharacterArmor>
|
|||
Stain = stain;
|
||||
}
|
||||
|
||||
public CharacterArmor With(StainId stain)
|
||||
public readonly CharacterArmor With(StainId stain)
|
||||
=> new(Set, Variant, stain);
|
||||
|
||||
public CharacterWeapon ToWeapon()
|
||||
public readonly CharacterWeapon ToWeapon()
|
||||
=> new(Set, 0, Variant, Stain);
|
||||
|
||||
public CharacterWeapon ToWeapon(StainId stain)
|
||||
public readonly CharacterWeapon ToWeapon(StainId stain)
|
||||
=> new(Set, 0, Variant, stain);
|
||||
|
||||
public override string ToString()
|
||||
|
|
|
|||
|
|
@ -40,10 +40,10 @@ public struct CharacterWeapon : IEquatable<CharacterWeapon>
|
|||
Stain = (StainId)(value >> 48);
|
||||
}
|
||||
|
||||
public CharacterArmor ToArmor()
|
||||
public readonly CharacterArmor ToArmor()
|
||||
=> new(Set, (byte)Variant, Stain);
|
||||
|
||||
public CharacterArmor ToArmor(StainId stain)
|
||||
public readonly CharacterArmor ToArmor(StainId stain)
|
||||
=> new(Set, (byte)Variant, stain);
|
||||
|
||||
public static readonly CharacterWeapon Empty = new(0, 0, 0, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue