New role configs system

This commit is contained in:
ang-xd committed 2024-09-14 12:55:34 -04:00
1 parent faed84d0f6
commit 6e3de08043
15 files changed
+175 -138

No files matched your search

+6 -3
View File
@@ -1,5 +1,4 @@
using MiraAPI.Roles;
using MiraAPI.Utilities.Assets;
using TMPro;
using UnityEngine;
@@ -13,8 +12,12 @@ public class ChameloenRole : CrewmateRole, ICustomRole
public string RoleDescription => RoleLongDescription;
public Color RoleColor => Palette.AcceptedGreen;
public ModdedRoleTeams Team => ModdedRoleTeams.Crewmate;
public LoadableAsset<Sprite> OptionsScreenshot => ExampleAssets.Banner;
public int MaxPlayers => 2;
public CustomRoleConfiguration Configuration => new CustomRoleConfiguration(this)
{
MaxPlayers = 2,
OptionsScreenshot = ExampleAssets.Banner,
};
public void PlayerControlFixedUpdate(PlayerControl playerControl)
{