Skip to content

Commit ced753a

Browse files
committed
new for someone
1 parent 3510f0e commit ced753a

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

EXILED/Exiled.CustomItems/API/Features/CustomItem{T}.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Exiled.CustomItems.API.Features
1414
/// </summary>
1515
/// <typeparam name="T">The concrete <see cref="CustomItem"/> type.</typeparam>
1616
public abstract class CustomItem<T> : CustomItem
17-
where T : CustomItem<T>
17+
where T : CustomItem<T>, new()
1818
{
1919
/// <summary>
2020
/// Gets the singleton instance of this <see cref="CustomItem"/>.
@@ -42,7 +42,7 @@ public override void Destroy()
4242
/// </summary>
4343
/// <typeparam name="T">The concrete <see cref="CustomWeapon"/> type.</typeparam>
4444
public abstract class CustomWeapon<T> : CustomWeapon
45-
where T : CustomWeapon<T>
45+
where T : CustomWeapon<T>, new()
4646
{
4747
/// <summary>
4848
/// Gets the singleton instance of this <see cref="CustomWeapon"/>.
@@ -70,7 +70,7 @@ public override void Destroy()
7070
/// </summary>
7171
/// <typeparam name="T">The concrete <see cref="CustomKeycard"/> type.</typeparam>
7272
public abstract class CustomKeycard<T> : CustomKeycard
73-
where T : CustomKeycard<T>
73+
where T : CustomKeycard<T>, new()
7474
{
7575
/// <summary>
7676
/// Gets the singleton instance of this <see cref="CustomKeycard"/>.
@@ -98,7 +98,7 @@ public override void Destroy()
9898
/// </summary>
9999
/// <typeparam name="T">The concrete <see cref="CustomGrenade"/> type.</typeparam>
100100
public abstract class CustomGrenade<T> : CustomGrenade
101-
where T : CustomGrenade<T>
101+
where T : CustomGrenade<T>, new()
102102
{
103103
/// <summary>
104104
/// Gets the singleton instance of this <see cref="CustomGrenade"/>.
@@ -126,7 +126,7 @@ public override void Destroy()
126126
/// </summary>
127127
/// <typeparam name="T">The concrete <see cref="CustomArmor"/> type.</typeparam>
128128
public abstract class CustomArmor<T> : CustomArmor
129-
where T : CustomArmor<T>
129+
where T : CustomArmor<T>, new()
130130
{
131131
/// <summary>
132132
/// Gets the singleton instance of this <see cref="CustomArmor"/>.
@@ -154,7 +154,7 @@ public override void Destroy()
154154
/// </summary>
155155
/// <typeparam name="T">The concrete <see cref="CustomGoggles"/> type.</typeparam>
156156
public abstract class CustomGoggles<T> : CustomGoggles
157-
where T : CustomGoggles<T>
157+
where T : CustomGoggles<T>, new()
158158
{
159159
/// <summary>
160160
/// Gets the singleton instance of this <see cref="CustomGoggles"/>.

EXILED/Exiled.CustomRoles/API/Features/CustomRole{T}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Exiled.CustomRoles.API.Features
1414
/// </summary>
1515
/// <typeparam name="T">The concrete <see cref="CustomRole"/> type.</typeparam>
1616
public abstract class CustomRole<T> : CustomRole
17-
where T : CustomRole<T>
17+
where T : CustomRole<T>, new()
1818
{
1919
/// <summary>
2020
/// Gets the singleton instance of this <see cref="CustomRole"/>.

0 commit comments

Comments
 (0)