getting rid of IDE warnings

This commit is contained in:
XtraCube committed 2024-08-20 14:27:45 -04:00
1 parent 65e533c268
commit 8b55463fa0
17 files changed
+25 -52

No files matched your search

+1 -1
View File
@@ -15,6 +15,6 @@ public class CustomRole : ImpostorRole, ICustomRole
public ModdedRoleTeams Team => ModdedRoleTeams.Impostor;
public LoadableAsset<Sprite> OptionsScreenshot => MiraAssets.Banner;
[ModdedNumberOption("Testing level", min: 3, max: 9, roleType: typeof(CustomRole))] public float testingLevel { get; set; } = 4;
[ModdedNumberOption("Testing level", min: 3, max: 9, roleType: typeof(CustomRole))] public float TestingLevel { get; set; } = 4;
}
+1 -1
View File
@@ -15,6 +15,6 @@ public class CustomRole2 : CrewmateRole, ICustomRole
public ModdedRoleTeams Team => ModdedRoleTeams.Crewmate;
public LoadableAsset<Sprite> OptionsScreenshot => MiraAssets.Banner;
[ModdedToggleOption("Teleportation ability", roleType: typeof(CustomRole2))] public bool teleport { get; set; } = true;
[ModdedToggleOption("Teleportation ability", roleType: typeof(CustomRole2))] public bool Teleport { get; set; } = true;
}
+3 -3
View File
@@ -11,9 +11,9 @@ public class CustomRoleSettings : IModdedOptionGroup
public Type AdvancedRole => typeof(CustomRole);
[ModdedNumberOption("amogus", min: 3, max: 9)] public float amogus { get; set; } = 1;
[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;
[ModdedEnumOption("dwayne the rock johnson", typeof(TestEnum))] public TestEnum DwayneTheRockJohnson { get; set; } = TestEnum.Hello;
public ModdedToggleOption testToggle { get; } = new ("test toggle", false);
public ModdedToggleOption TestToggle { get; } = new ("test toggle", false);
}
+5 -5
View File
@@ -10,19 +10,19 @@ public class ExampleOptions : IModdedOptionGroup
public Color GroupColor => Color.red;
[ModdedToggleOption("Use Thing")]
public bool useThing { get; set; } = false;
public bool UseThing { get; set; } = false;
[ModdedToggleOption("Use another thing")]
public bool useAnotherThing { get; set; } = true;
public bool UseAnotherThing { get; set; } = true;
[ModdedNumberOption("Sussy level", min: 0, max: 10)]
public float sussyLevel { get; set; } = 4f;
public float SussyLevel { get; set; } = 4f;
[ModdedStringOption("Sus choices", ["hello", "hello 2", "hello 3"])]
public int susChoices { get; set; } = 2;
public int SusChoices { get; set; } = 2;
[ModdedEnumOption("Enum test", typeof(TestEnum))]
public TestEnum enumTest { get; set; } = TestEnum.Bye;
public TestEnum EnumTest { get; set; } = TestEnum.Bye;
}
public enum TestEnum
+2 -2
View File
@@ -4,6 +4,6 @@ namespace MiraAPI.Example;
public class SomeRandomNonGroupClass
{
[ModdedStringOption("Yeah, idk", ["Idk 1", "idk 2", "idk 3", "idk 4"])] public static int yeaIdk { get; set; } = 3;
[ModdedNumberOption("Aw man", min: 45, max: 95)] public float sussyLevel { get; set; } = 63;
[ModdedStringOption("Yeah, idk", ["Idk 1", "idk 2", "idk 3", "idk 4"])] public static int YeaIdk { get; set; } = 3;
[ModdedNumberOption("Aw man", min: 45, max: 95)] public float SussyLevel { get; set; } = 63;
}