mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-23 01:54:22 +00:00
Document the CardSet::from_code
change
This commit is contained in:
parent
11bd4204dd
commit
e5aa83af96
1 changed files with 3 additions and 1 deletions
|
@ -55,7 +55,9 @@ impl CardSet {
|
||||||
hm.get(self)
|
hm.get(self)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the [`CardSet`] from its short code, **assuming it is not an [`CardSet::Events`] card**.
|
/// Get the [`CardSet`] from its short code.
|
||||||
|
///
|
||||||
|
/// [`CardSet::Worldwalker`] and [`CardSet::TheDarkinSaga`] share the same code `06`, so a variant cannot be determined.
|
||||||
///
|
///
|
||||||
/// [`CardSet::Events`] cards have the short code of the set they were released in, so it is impossible to determine if a card belongs to that set from its short code.
|
/// [`CardSet::Events`] cards have the short code of the set they were released in, so it is impossible to determine if a card belongs to that set from its short code.
|
||||||
pub fn from_code(value: &str) -> Self {
|
pub fn from_code(value: &str) -> Self {
|
||||||
|
|
Loading…
Reference in a new issue