mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
Merge branch 'dev' into new-features
This commit is contained in:
commit
1e4894538c
1 file changed
+12
-2
@@ -1,8 +1,8 @@
|
|||||||
using AmongUs.GameOptions;
|
using AmongUs.GameOptions;
|
||||||
|
using System;
|
||||||
using MiraAPI.Patches.Freeplay;
|
using MiraAPI.Patches.Freeplay;
|
||||||
using MiraAPI.Utilities.Assets;
|
using MiraAPI.Utilities.Assets;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace MiraAPI.Roles;
|
namespace MiraAPI.Roles;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -10,6 +10,16 @@ namespace MiraAPI.Roles;
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public record struct CustomRoleConfiguration
|
public record struct CustomRoleConfiguration
|
||||||
{
|
{
|
||||||
|
#pragma warning disable S1133
|
||||||
|
[Obsolete("Default constructor is not supported. Please use the constructor that takes an ICustomRole parameter.")]
|
||||||
|
#pragma warning restore S1133
|
||||||
|
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
|
||||||
|
public CustomRoleConfiguration()
|
||||||
|
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
|
||||||
|
{
|
||||||
|
throw new NotImplementedException("Default constructor is not supported. Please use the constructor that takes an ICustomRole parameter.");
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="CustomRoleConfiguration"/> struct.
|
/// Initializes a new instance of the <see cref="CustomRoleConfiguration"/> struct.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in new issue
Block a user