mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-28 19:43:55 +00:00
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace MiraAPI.Cosmetics;
|
|
public abstract class AbstractCosmeticsGroup
|
|
{
|
|
public List<HatData> Hats { get; } = [];
|
|
public List<SkinData> Skins { get; } = [];
|
|
public List<VisorData> Visors { get; } = [];
|
|
public List<NamePlateData> Nameplates { get; } = [];
|
|
|
|
/// <summary>
|
|
/// Gets the name of the group. Visible in options menu.
|
|
/// </summary>
|
|
public abstract string GroupName { get; }
|
|
|
|
/// <summary>
|
|
/// Gets a function that determines whether the group should be visible or not.
|
|
/// </summary>
|
|
public virtual Func<bool> GroupVisible => () => true;
|
|
|
|
/// <summary>
|
|
/// Gets the sorting mode of individual hats within this group.
|
|
/// </summary>
|
|
public virtual SortingMode SortingMode => SortingMode.AlphabeticName;
|
|
|
|
/// <summary>
|
|
/// Gets the priority of a group for sorting groups.
|
|
/// </summary>
|
|
public virtual int SortingPriority { get; }
|
|
}
|
|
|
|
public enum SortingMode
|
|
{
|
|
Priority,
|
|
AlphabeticProductId,
|
|
AlphabeticStoreName,
|
|
AlphabeticName,
|
|
}
|