mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-30 12:23:42 +01:00
.
This commit is contained in:
parent
7710cfadfa
commit
2d6fd6015d
88 changed files with 2304 additions and 383 deletions
29
GlamourerOld/State/FixedDesignManager.cs
Normal file
29
GlamourerOld/State/FixedDesignManager.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using FFXIVClientStructs.FFXIV.Client.Game.InstanceContent;
|
||||
using Glamourer.Designs;
|
||||
using Glamourer.Interop;
|
||||
using Glamourer.Structs;
|
||||
using Penumbra.GameData.Actors;
|
||||
|
||||
namespace Glamourer.State;
|
||||
|
||||
public class FixedDesignManager
|
||||
{
|
||||
public class FixedDesign
|
||||
{
|
||||
public Design Design = null!;
|
||||
public byte? JobCondition;
|
||||
public ushort? TerritoryCondition;
|
||||
|
||||
public bool Applies(byte job, ushort territoryType)
|
||||
=> (!JobCondition.HasValue || JobCondition.Value == job)
|
||||
&& (!TerritoryCondition.HasValue || TerritoryCondition.Value == territoryType);
|
||||
}
|
||||
|
||||
public IReadOnlyList<FixedDesign> GetDesigns(ActorIdentifier actor)
|
||||
{
|
||||
return Array.Empty<FixedDesign>();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue