Add IEncounterable -> pkm interface method

egg,slot,static,link,trade need to be implemented later

remove IEncounterable from PL6
This commit is contained in:
Kurt 2018-03-28 20:38:07 -07:00
parent 314a92b67b
commit 1e13220e6e
9 changed files with 17 additions and 1 deletions

View file

@ -14,5 +14,7 @@
public GameVersion Game;
public bool SplitBreed;
public PKM ConvertToPKM(ITrainerInfo SAV) => throw new System.NotImplementedException();
}
}

View file

@ -19,5 +19,7 @@
LevelMax = pkm.CurrentLevel;
EggEncounter = pkm.WasEgg;
}
public PKM ConvertToPKM(ITrainerInfo SAV) => throw new System.NotImplementedException();
}
}

View file

@ -36,5 +36,7 @@
public bool RibbonWorld { get; set; }
public bool RibbonChampionWorld { get; set; }
public bool RibbonSouvenir { get; set; }
public PKM ConvertToPKM(ITrainerInfo SAV) => throw new System.NotImplementedException();
}
}

View file

@ -20,5 +20,7 @@ namespace PKHeX.Core
Encounter = encounter;
Check = check;
}
public PKM ConvertToPKM(ITrainerInfo SAV) => throw new System.NotImplementedException();
}
}

View file

@ -60,5 +60,7 @@
return $"{wild} {Type.ToString().Replace("_", " ")}";
}
}
public PKM ConvertToPKM(ITrainerInfo SAV) => throw new System.NotImplementedException();
}
}

View file

@ -63,5 +63,7 @@
private const string _name = "Static Encounter";
public string Name => Version == GameVersion.Any ? _name : $"{_name} ({Version})";
public PKM ConvertToPKM(ITrainerInfo SAV) => throw new System.NotImplementedException();
}
}

View file

@ -53,5 +53,7 @@
{
0, 126, 254, 2001, 30002, 30001, 30001,
};
public PKM ConvertToPKM(ITrainerInfo SAV) => throw new System.NotImplementedException();
}
}

View file

@ -10,6 +10,8 @@
bool EggEncounter { get; }
int LevelMin { get; }
int LevelMax { get; }
PKM ConvertToPKM(ITrainerInfo SAV);
}
public static partial class Extensions

View file

@ -189,7 +189,7 @@ namespace PKHeX.Core
/// This Template object is very similar to the <see cref="WC6"/> structure and similar objects, in that the structure offsets are ordered the same.
/// This template object is only present in Generation 6 save files.
/// </remarks>
public class PL6_PKM : IEncounterable, IRibbonSetEvent3, IRibbonSetEvent4
public class PL6_PKM : IRibbonSetEvent3, IRibbonSetEvent4
{
internal const int Size = 0xA0;