Skip to content

Commit 6b7ea01

Browse files
committed
Returned GetAbilityIdentifier as obsolete method
1 parent 94cde56 commit 6b7ea01

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Models/Identifiers/AbilityIdentifier.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using System.Collections.Generic;
23
using DiskCardGame;
34

@@ -17,6 +18,14 @@ private AbilityIdentifier(string guid, string name)
1718
ids.Add(this);
1819
}
1920

21+
[Obsolete("Replaced by GetID")]
22+
public static AbilityIdentifier GetAbilityIdentifier(string guid, string name)
23+
{
24+
return ids.Exists(x => x.guid == guid && x.name == name)
25+
? ids.Find(x => x.guid == guid && x.name == name)
26+
: new AbilityIdentifier(guid, name);
27+
}
28+
2029
public static AbilityIdentifier GetID(string guid, string name)
2130
{
2231
return ids.Exists(x => x.guid == guid && x.name == name)

0 commit comments

Comments
 (0)