refactor!: IGameObject removed
This commit is contained in:
@@ -8,10 +8,10 @@ public class NotAssignedException : Exception
|
||||
public NotAssignedException() : base("The object has not been assigned.") { }
|
||||
public NotAssignedException(string? message) : base(message) { }
|
||||
|
||||
public static NotAssignedException From<T1, T2>(T1 to, T2? value) where T1 : IAssignable
|
||||
public static NotAssignedException From<T1, T2>(T1 to, T2? value)
|
||||
=> new($"{value?.GetType().FullName ?? "\"null\""} has not been assigned to {to?.GetType().FullName ?? "\"null\""}");
|
||||
|
||||
public static void Check<T1, T2>(T1 to, T2? value) where T1 : IAssignable
|
||||
public static void Check<T1, T2>(T1 to, T2? value)
|
||||
{
|
||||
if (value is not null)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user