merge ruleset into editorconfig

This commit is contained in:
Az committed 2026-09-13 18:40:37 -04:00
1 parent cd94666ed9
commit 554a77fb64
146 files changed
+672 -538

No files matched your search

+5 -5
View File
@@ -9,13 +9,13 @@ namespace MiraAPI.Example.Roles;
public class ChameleonRole : CrewmateRole, ICustomRole
{
private bool shouldHide;
public string IdPart => "Chameleon";
public string IdPrefix => "ApiExample.Role.Crewmate";
public Color RoleColor => Palette.AcceptedGreen;
public ModdedRoleTeams Team => ModdedRoleTeams.Crewmate;
private bool _shouldHide;
public CustomRoleConfiguration Configuration => new(this)
{
OptionsScreenshot = ExampleAssets.Banner,
@@ -30,12 +30,12 @@ public class ChameleonRole : CrewmateRole, ICustomRole
{
Logger<ExamplePlugin>.Info("Initializing ChameleonRole for player: " + player.PlayerId);
RoleBehaviourStubs.Initialize(this, player);
_shouldHide = true;
shouldHide = true;
}
public void FixedUpdate()
{
if (!Player || !_shouldHide)
if (!Player || !shouldHide)
{
return;
}
@@ -76,7 +76,7 @@ public class ChameleonRole : CrewmateRole, ICustomRole
{
Logger<ExamplePlugin>.Info("Deinitializing ChameleonRole for player: " + targetPlayer.PlayerId);
RoleBehaviourStubs.Deinitialize(this, targetPlayer);
_shouldHide = false;
shouldHide = false;
foreach (var cosmetic in Player.cosmetics.transform.GetComponentsInChildren<SpriteRenderer>(true))
{
cosmetic.color = Color.white;