コード例 #1
0
ファイル: EncountersGO.cs プロジェクト: ZeroX1ng/PKHeX
        private static byte[][] Get(string resource, string ident)
        {
            var name = $"encounter_{resource}.pkl";
            var data = Util.GetBinaryResource(name);

            return(BinLinker.Unpack(data, ident));
        }
コード例 #2
0
ファイル: EncountersGO.cs プロジェクト: yanisdreemurr/PKHeX
        private static byte[][] Get(string resource, string ident)
        {
            var name = $"encounter_{resource}.pkl";

#if DEBUG
            var data = System.IO.File.Exists(name) ? System.IO.File.ReadAllBytes(name) : Util.GetBinaryResource(name);
#else
            var data = Util.GetBinaryResource(name);
#endif
            return(BinLinker.Unpack(data, ident));
        }
コード例 #3
0
ファイル: EncountersGO.cs プロジェクト: mvasquezb/PKHeX
 private static byte[][] Get(string resource, string ident) => BinLinker.Unpack(Util.GetBinaryResource($"encounter_{resource}.pkl"), ident);