Beispiel #1
0
            public DLGEntry(BinaryReaderEx br, Dictionary <int, string> strings,
                            Dictionary <int, SHAPEntry> shapEntries, Dictionary <int, CTRLEntry> ctrlEntries, Dictionary <int, DLGOEntry> dlgoEntries)
            {
                int nameOffset = br.ReadInt32();
                int shapOffset = br.ReadInt32();
                int ctrlOffset = br.ReadInt32();

                br.AssertInt32(0);
                br.AssertInt32(0);
                br.AssertInt32(0);
                br.AssertInt32(0);
                br.AssertInt32(0);
                Unk9 = br.ReadInt32();
                int dlgoOffset = br.ReadInt32();

                LeftEdge   = br.ReadInt16();
                TopEdge    = br.ReadInt16();
                RightEdge  = br.ReadInt16();
                BottomEdge = br.ReadInt16();
                Unk14      = br.ReadInt16();
                br.AssertInt16(-1);
                br.AssertInt32(-1);
                br.AssertInt16(-1);
                br.AssertInt16(0);
                br.AssertInt32(0);

                Name    = strings[nameOffset];
                Shape   = shapEntries[shapOffset];
                Control = ctrlEntries[ctrlOffset];
                DLGO    = dlgoEntries[dlgoOffset];
            }
Beispiel #2
0
            public DLGOEntry(BinaryReaderEx br, Dictionary <int, string> strings, Dictionary <int, SHAPEntry> shapEntries, Dictionary <int, CTRLEntry> ctrlEntries)
            {
                int nameOffset = br.ReadInt32();
                int shapOffset = br.ReadInt32();
                int ctrlOffset = br.ReadInt32();

                br.AssertInt32(0);
                br.AssertInt32(0);
                br.AssertInt32(0);
                br.AssertInt32(0);
                br.AssertInt32(0);

                Name    = strings[nameOffset];
                Shape   = shapEntries[shapOffset];
                Control = ctrlEntries[ctrlOffset];
            }