mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
55 lines
No EOL
1.4 KiB
C#
55 lines
No EOL
1.4 KiB
C#
using System;
|
|
|
|
namespace Penumbra.GameData.Enums;
|
|
|
|
public enum ObjectType : byte
|
|
{
|
|
Unknown,
|
|
Vfx,
|
|
DemiHuman,
|
|
Accessory,
|
|
World,
|
|
Housing,
|
|
Monster,
|
|
Icon,
|
|
LoadingScreen,
|
|
Map,
|
|
Interface,
|
|
Equipment,
|
|
Character,
|
|
Weapon,
|
|
Font,
|
|
}
|
|
|
|
public static class ObjectTypeExtensions
|
|
{
|
|
public static string ToName( this ObjectType type )
|
|
=> type switch
|
|
{
|
|
ObjectType.Vfx => "Visual Effect",
|
|
ObjectType.DemiHuman => "Demi Human",
|
|
ObjectType.Accessory => "Accessory",
|
|
ObjectType.World => "Doodad",
|
|
ObjectType.Housing => "Housing Object",
|
|
ObjectType.Monster => "Monster",
|
|
ObjectType.Icon => "Icon",
|
|
ObjectType.LoadingScreen => "Loading Screen",
|
|
ObjectType.Map => "Map",
|
|
ObjectType.Interface => "UI Element",
|
|
ObjectType.Equipment => "Equipment",
|
|
ObjectType.Character => "Character",
|
|
ObjectType.Weapon => "Weapon",
|
|
ObjectType.Font => "Font",
|
|
_ => "Unknown",
|
|
};
|
|
|
|
|
|
public static readonly ObjectType[] ValidImcTypes =
|
|
{
|
|
ObjectType.Equipment,
|
|
ObjectType.Accessory,
|
|
ObjectType.DemiHuman,
|
|
ObjectType.Monster,
|
|
ObjectType.Weapon,
|
|
};
|
|
} |