mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 20:24:17 +01:00
Add Model Parsing and display them under Changed Items, also display variants there, and rework Data Sharing a bunch.
This commit is contained in:
parent
a64273bd73
commit
eedd3e2dac
21 changed files with 17032 additions and 332 deletions
26
Penumbra.GameData/Enums/ModelTypeExtensions.cs
Normal file
26
Penumbra.GameData/Enums/ModelTypeExtensions.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
using FFXIVClientStructs.FFXIV.Client.Graphics.Scene;
|
||||
|
||||
namespace Penumbra.GameData.Enums;
|
||||
|
||||
public static class ModelTypeExtensions
|
||||
{
|
||||
public static string ToName(this CharacterBase.ModelType type)
|
||||
=> type switch
|
||||
{
|
||||
CharacterBase.ModelType.DemiHuman => "Demihuman",
|
||||
CharacterBase.ModelType.Monster => "Monster",
|
||||
CharacterBase.ModelType.Human => "Human",
|
||||
CharacterBase.ModelType.Weapon => "Weapon",
|
||||
_ => string.Empty,
|
||||
};
|
||||
|
||||
public static CharacterBase.ModelType ToModelType(this ObjectType type)
|
||||
=> type switch
|
||||
{
|
||||
ObjectType.DemiHuman => CharacterBase.ModelType.DemiHuman,
|
||||
ObjectType.Monster => CharacterBase.ModelType.Monster,
|
||||
ObjectType.Character => CharacterBase.ModelType.Human,
|
||||
ObjectType.Weapon => CharacterBase.ModelType.Weapon,
|
||||
_ => 0,
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue