mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-22 23:47:45 +01:00
Add UI stuff to random designs.
This commit is contained in:
parent
2a01b328e1
commit
139508917b
18 changed files with 744 additions and 117 deletions
44
Glamourer/Designs/Special/RevertDesign.cs
Normal file
44
Glamourer/Designs/Special/RevertDesign.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
using Glamourer.Automation;
|
||||
using Glamourer.Interop.Material;
|
||||
using Glamourer.State;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace Glamourer.Designs.Special;
|
||||
|
||||
public class RevertDesign : IDesignStandIn
|
||||
{
|
||||
public const string SerializedName = "//Revert";
|
||||
public const string ResolvedName = "Revert";
|
||||
|
||||
public string ResolveName(bool _)
|
||||
=> ResolvedName;
|
||||
|
||||
public ref readonly DesignData GetDesignData(in DesignData baseRef)
|
||||
=> ref baseRef;
|
||||
|
||||
public IReadOnlyList<(uint, MaterialValueDesign)> GetMaterialData()
|
||||
=> [];
|
||||
|
||||
public string SerializeName()
|
||||
=> SerializedName;
|
||||
|
||||
public bool Equals(IDesignStandIn? other)
|
||||
=> other is RevertDesign;
|
||||
|
||||
public StateSource AssociatedSource()
|
||||
=> StateSource.Game;
|
||||
|
||||
public IEnumerable<(IDesignStandIn Design, ApplicationType Flags)> AllLinks
|
||||
{
|
||||
get { yield return (this, ApplicationType.All); }
|
||||
}
|
||||
|
||||
public void AddData(JObject jObj)
|
||||
{ }
|
||||
|
||||
public void ParseData(JObject jObj)
|
||||
{ }
|
||||
|
||||
public bool ChangeData(object data)
|
||||
=> false;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue