options fixes + start re implement custom game modes

This commit is contained in:
XtraCube committed 2024-08-20 00:05:00 -04:00
1 parent 05bc3561d9
commit a37a8a8e1b
14 files changed
+268 -27

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
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);
}