private static byte[][] Get(string resource, string ident) { var name = $"encounter_{resource}.pkl"; var data = Util.GetBinaryResource(name); return(BinLinker.Unpack(data, ident)); }
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)); }
private static byte[][] Get(string resource, string ident) => BinLinker.Unpack(Util.GetBinaryResource($"encounter_{resource}.pkl"), ident);