mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 20:54:16 +01:00
Add some improvements to game path stuff, move the race inheritance tree to game data, etc.
This commit is contained in:
parent
b50ed4b99a
commit
f1b495dff4
8 changed files with 607 additions and 320 deletions
|
|
@ -1,3 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
|
||||
|
|
@ -16,8 +17,7 @@ public enum BodySlot : byte
|
|||
public static class BodySlotEnumExtension
|
||||
{
|
||||
public static string ToSuffix( this BodySlot value )
|
||||
{
|
||||
return value switch
|
||||
=> value switch
|
||||
{
|
||||
BodySlot.Zear => "zear",
|
||||
BodySlot.Face => "face",
|
||||
|
|
@ -26,7 +26,17 @@ public static class BodySlotEnumExtension
|
|||
BodySlot.Tail => "tail",
|
||||
_ => throw new InvalidEnumArgumentException(),
|
||||
};
|
||||
}
|
||||
|
||||
public static char ToAbbreviation(this BodySlot value)
|
||||
=> value switch
|
||||
{
|
||||
BodySlot.Hair => 'h',
|
||||
BodySlot.Face => 'f',
|
||||
BodySlot.Tail => 't',
|
||||
BodySlot.Body => 'b',
|
||||
BodySlot.Zear => 'z',
|
||||
_ => throw new InvalidEnumArgumentException(),
|
||||
};
|
||||
}
|
||||
|
||||
public static partial class Names
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue