Skip to content

Commit 7ced3f5

Browse files
committed
Returned GetIdentifier as deprecated method
1 parent 94cde56 commit 7ced3f5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Models/Identifiers/AbilityIdentifier.cs

Lines changed: 7 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,12 @@ private AbilityIdentifier(string guid, string name)
1718
ids.Add(this);
1819
}
1920

21+
[Obsolete("GetIdentifier is deprecated, use GetID instead")]
22+
public static AbilityIdentifier GetIdentifier(string guid, string name)
23+
{
24+
return GetID(guid, name);
25+
}
26+
2027
public static AbilityIdentifier GetID(string guid, string name)
2128
{
2229
return ids.Exists(x => x.guid == guid && x.name == name)

0 commit comments

Comments
 (0)