Пример #1
0
        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
        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
 private static byte[][] Get(string resource, string ident) => BinLinker.Unpack(Util.GetBinaryResource($"encounter_{resource}.pkl"), ident);