internal static STUInstance[] GetInstances(ulong guid, CASCHandler handler, Dictionary <ulong, Record> map) { Stream str = Util.OpenFile(map[guid], handler); ISTU stu = ISTU.NewInstance(str, uint.MaxValue); return(stu.Instances.ToArray()); }
internal static string GetOWString(ulong guid, CASCHandler handler, Dictionary <ulong, Record> map) { if (guid == 0 || !map.ContainsKey(guid)) { return(null); } Stream str = Util.OpenFile(map[guid], handler); OWString ows = new OWString(str); return(ows); }