mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
options fixes + start re implement custom game modes
This commit is contained in:
1 parent
05bc3561d9
commit
a37a8a8e1b
14 files changed
+268
-27
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user