mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
27 lines
771 B
C#
27 lines
771 B
C#
using MiraAPI.Roles;
|
|
using UnityEngine;
|
|
|
|
namespace MiraAPI.Example.Roles;
|
|
|
|
public class TeleporterRole : CrewmateRole, ICustomRole
|
|
{
|
|
public string RoleName => "teleporter.name";
|
|
public string RoleLongDescription => "teleporter.description";
|
|
public string RoleDescription => RoleLongDescription;
|
|
public Color RoleColor => new Color32(221, 176, 152, 255);
|
|
public ModdedRoleTeams Team => ModdedRoleTeams.Crewmate;
|
|
|
|
public CustomRoleConfiguration Configuration => new CustomRoleConfiguration(this)
|
|
{
|
|
OptionsScreenshot = ExampleAssets.Banner,
|
|
CanModifyChance = false,
|
|
DefaultChance = 73,
|
|
DefaultRoleCount = 4,
|
|
};
|
|
|
|
public bool CanLocalPlayerSeeRole(PlayerControl player)
|
|
{
|
|
return true;
|
|
}
|
|
}
|