mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-13 12:14:18 +01:00
Append conversion for SetMetaFlag -> MetaIndex for help in moving down the API call to the state editor call.
This commit is contained in:
parent
cd6a6a462d
commit
356b814102
1 changed files with 12 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
using Glamourer.State;
|
using Glamourer.Api.Enums;
|
||||||
|
using Glamourer.State;
|
||||||
|
|
||||||
namespace Glamourer.Designs;
|
namespace Glamourer.Designs;
|
||||||
|
|
||||||
|
|
@ -37,6 +38,16 @@ public static class MetaExtensions
|
||||||
_ => (MetaFlag)byte.MaxValue,
|
_ => (MetaFlag)byte.MaxValue,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
public static MetaIndex ToIndex(this SetMetaFlag index)
|
||||||
|
=> index switch
|
||||||
|
{
|
||||||
|
SetMetaFlag.Wetness => MetaIndex.Wetness,
|
||||||
|
SetMetaFlag.HatState => MetaIndex.HatState,
|
||||||
|
SetMetaFlag.VisorState => MetaIndex.VisorState,
|
||||||
|
SetMetaFlag.WeaponState => MetaIndex.WeaponState,
|
||||||
|
_ => (MetaIndex)byte.MaxValue,
|
||||||
|
};
|
||||||
|
|
||||||
public static MetaIndex ToIndex(this MetaFlag index)
|
public static MetaIndex ToIndex(this MetaFlag index)
|
||||||
=> index switch
|
=> index switch
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue