mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
clearer naming
This commit is contained in:
1 parent
cb1a818377
commit
8382b9adf1
3 files changed
+10
-5
No files matched your search
@@ -20,6 +20,11 @@ public class NeutralKillerRole : ImpostorRole, ICustomRole
|
||||
|
||||
public RoleOptionsGroup RoleOptionsGroup { get; } = new("Outcast", Color.gray);
|
||||
|
||||
public TeamIntroConfiguration? IntroConfiguration { get; } = new(
|
||||
Color.gray,
|
||||
"NEUTRAL",
|
||||
"You are an Outcast. You do not have a team.");
|
||||
|
||||
public override void SpawnTaskHeader(PlayerControl playerControl)
|
||||
{
|
||||
// remove existing task header.
|
||||
|
||||
@@ -58,9 +58,9 @@ public interface ICustomRole
|
||||
/// <summary>
|
||||
/// Gets the role's IntroCutscene configuration.
|
||||
/// </summary>
|
||||
public RoleIntroConfiguration? IntroConfiguration => Team switch
|
||||
public TeamIntroConfiguration? IntroConfiguration => Team switch
|
||||
{
|
||||
ModdedRoleTeams.Custom => RoleIntroConfiguration.Neutral,
|
||||
ModdedRoleTeams.Custom => TeamIntroConfiguration.Neutral,
|
||||
_ => null,
|
||||
};
|
||||
|
||||
|
||||
@@ -3,17 +3,17 @@
|
||||
namespace MiraAPI.Roles;
|
||||
|
||||
/// <summary>
|
||||
/// Used to configure the intro cutscene.
|
||||
/// Used to configure the TEAM part of the intro cutscene.
|
||||
/// </summary>
|
||||
/// <param name="IntroTeamColor">The color to show during the "Team" part of the intro cutscene.</param>
|
||||
/// <param name="IntroTeamTitle">The title text to show during the "Team" part of the intro cutscene.</param>
|
||||
/// <param name="IntroTeamDescription">The description text to show during the "Team" part of the intro cutscene.</param>
|
||||
public record struct RoleIntroConfiguration(Color IntroTeamColor, string IntroTeamTitle, string IntroTeamDescription)
|
||||
public record struct TeamIntroConfiguration(Color IntroTeamColor, string IntroTeamTitle, string IntroTeamDescription)
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the default configuration for the "Neutral" team.
|
||||
/// </summary>
|
||||
public static RoleIntroConfiguration Neutral { get; } = new(
|
||||
public static TeamIntroConfiguration Neutral { get; } = new(
|
||||
Color.gray,
|
||||
"NEUTRAL",
|
||||
"You are Neutral. You do not have a team.");
|
||||
Reference in new issue
Block a user