mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Add equipment swapping.
This commit is contained in:
parent
6cd43aa304
commit
a01f73cde4
10 changed files with 710 additions and 184 deletions
|
|
@ -61,6 +61,24 @@ public static partial class GamePaths
|
|||
public static string Path(SetId monsterId, SetId bodyId, byte variant, char suffix1, char suffix2 = '\0')
|
||||
=> $"chara/monster/m{monsterId.Value:D4}/obj/body/b{bodyId.Value:D4}/texture/v{variant:D2}_m{monsterId.Value:D4}b{bodyId.Value:D4}{(suffix2 != '\0' ? $"_{suffix2}" : string.Empty)}_{suffix1}.tex";
|
||||
}
|
||||
|
||||
public static partial class Sklb
|
||||
{
|
||||
public static string Path(SetId monsterId)
|
||||
=> $"chara/monster/m{monsterId.Value:D4}/skeleton/base/b0001/skl_m{monsterId.Value:D4}b0001.sklb";
|
||||
}
|
||||
|
||||
public static partial class Skp
|
||||
{
|
||||
public static string Path(SetId monsterId)
|
||||
=> $"chara/monster/m{monsterId.Value:D4}/skeleton/base/b0001/skl_m{monsterId.Value:D4}b0001.skp";
|
||||
}
|
||||
|
||||
public static partial class Eid
|
||||
{
|
||||
public static string Path(SetId monsterId)
|
||||
=> $"chara/monster/m{monsterId.Value:D4}/skeleton/base/b0001/eid_m{monsterId.Value:D4}b0001.eid";
|
||||
}
|
||||
}
|
||||
|
||||
public static partial class Weapon
|
||||
|
|
@ -243,6 +261,21 @@ public static partial class GamePaths
|
|||
}
|
||||
}
|
||||
|
||||
public static partial class Skeleton
|
||||
{
|
||||
public static partial class Phyb
|
||||
{
|
||||
public static string Path(GenderRace raceCode, string slot, SetId slotId)
|
||||
=> $"chara/human/c{raceCode.ToRaceCode()}/skeleton/{slot}/{slot[0]}{slotId.Value:D4}/phy_c{raceCode.ToRaceCode()}{slot[0]}{slotId.Value:D4}.phyb";
|
||||
}
|
||||
|
||||
public static partial class Sklb
|
||||
{
|
||||
public static string Path(GenderRace raceCode, string slot, SetId slotId)
|
||||
=> $"chara/human/c{raceCode.ToRaceCode()}/skeleton/{slot}/{slot[0]}{slotId.Value:D4}/skl_c{raceCode.ToRaceCode()}{slot[0]}{slotId.Value:D4}.sklb";
|
||||
}
|
||||
}
|
||||
|
||||
public static partial class Character
|
||||
{
|
||||
public static partial class Mdl
|
||||
|
|
@ -254,18 +287,6 @@ public static partial class GamePaths
|
|||
=> $"chara/human/c{raceCode.ToRaceCode()}/obj/{slot.ToSuffix()}/{slot.ToAbbreviation()}{slotId.Value:D4}/model/c{raceCode.ToRaceCode()}{slot.ToAbbreviation()}{slotId.Value:D4}_{type.ToSuffix()}.mdl";
|
||||
}
|
||||
|
||||
public static partial class Phyb
|
||||
{
|
||||
public static string Path(GenderRace raceCode, BodySlot slot, SetId slotId)
|
||||
=> $"chara/human/c{raceCode.ToRaceCode()}/skeleton/{slot.ToSuffix()}/{slot.ToAbbreviation()}{slotId.Value:D4}/phy_c{raceCode.ToRaceCode()}{slot.ToAbbreviation()}{slotId.Value:D4}.phyb";
|
||||
}
|
||||
|
||||
public static partial class Sklb
|
||||
{
|
||||
public static string Path(GenderRace raceCode, BodySlot slot, SetId slotId)
|
||||
=> $"chara/human/c{raceCode.ToRaceCode()}/skeleton/{slot.ToSuffix()}/{slot.ToAbbreviation()}{slotId.Value:D4}/skl_c{raceCode.ToRaceCode()}{slot.ToAbbreviation()}{slotId.Value:D4}.sklb";
|
||||
}
|
||||
|
||||
public static partial class Mtrl
|
||||
{
|
||||
// [GeneratedRegex(@"chara/human/c(?'race'\d{4})/obj/(?'type'[a-z]+)/(?'typeabr'[a-z])(?'id'\d{4})/material(/v(?'variant'\d{4}))?/mt_c\k'race'\k'typeabr'\k'id'(_(?'slot'[a-z]{3}))?_[a-z]+\.mtrl")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue