Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 3
0
 private static byte[][] Get(string resource, string ident) => BinLinker.Unpack(Util.GetBinaryResource($"encounter_{resource}.pkl"), ident);