public CDAB() { Header = new CDABHeader(); Shape = new SHAP(); Streams = new List <STRM>(); isVisible = true; }
private DRBRaw(byte[] bytes) { BinaryReaderEx br = new BinaryReaderEx(false, bytes); br.AssertASCII("DRB\0"); br.AssertInt32(0); br.AssertInt32(0); br.AssertInt32(0); str = new STR(br); texi = new TEXI(br); shpr = new Section(br, "SHPR"); ctpr = new Section(br, "CTPR"); anip = new Section(br, "ANIP"); intp = new Section(br, "INTP"); scdp = new Section(br, "SCDP"); shap = new SHAP(br); ctrl = new Section(br, "CTRL"); anik = new Section(br, "ANIK"); anio = new Section(br, "ANIO"); anim = new Section(br, "ANIM"); scdk = new Section(br, "SCDK"); scdo = new Section(br, "SCDO"); scdl = new Section(br, "SCDL"); Dictionary <int, DLGOEntry> dlgoEntries = readDLGO(br, str); dlg = new DLG(br, str, dlgoEntries); br.AssertASCII("END\0"); br.AssertInt32(0); br.AssertInt32(0); br.AssertInt32(0); }
public CDAB(byte[] Data) { EndianBinaryReaderEx er = new EndianBinaryReaderEx(new MemoryStream(Data), Endianness.LittleEndian); try { Header = new CDABHeader(er); Shape = new SHAP(er); Streams = new STRM[Shape.NrStreams]; for (int i = 0; i < Shape.NrStreams; i++) { Streams[i] = new STRM(er); } } finally { er.Close(); } }
public CDAB(byte[] Data) { EndianBinaryReaderEx er = new EndianBinaryReaderEx(new MemoryStream(Data), Endianness.LittleEndian); try { Header = new CDABHeader(er); Shape = new SHAP(er); Streams = new List <STRM>(); for (int i = 0; i < Shape.NrStreams; i++) { Streams.Add(new STRM(er)); } } finally { er.Close(); } isVisible = true; }