mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 11:39:45 +00:00
19 lines
623 B
C#
19 lines
623 B
C#
using System;
|
|
using MiraAPI.GameOptions;
|
|
using MiraAPI.GameOptions.Attributes;
|
|
using MiraAPI.GameOptions.OptionTypes;
|
|
|
|
namespace MiraAPI.Example;
|
|
|
|
public class CustomRoleSettings : IModdedOptionGroup
|
|
{
|
|
public string GroupName => "Custom Role";
|
|
|
|
public Type AdvancedRole => typeof(CustomRole);
|
|
|
|
[ModdedNumberOption("amogus", min: 3, max: 9)] public float amogus { get; set; } = 1;
|
|
|
|
[ModdedEnumOption("dwayne the rock johnson", typeof(TestEnum))] public TestEnum dwayneTheRockJohnson { get; set; } = TestEnum.Hello;
|
|
|
|
public ModdedToggleOption testToggle { get; } = new ("test toggle", false);
|
|
} |