Пример #1
0
            public TES4_HEDR(TesFileReader fr) : base(fr, false)
            {
                Version         = new TesFloat(fr);
                NumberOfRecords = new TesUInt32(fr);
                NextObjectID    = new TesUInt32(fr);

                Values.Add(Version);
                Values.Add(NumberOfRecords);
                Values.Add(NextObjectID);
            }
Пример #2
0
        public TesGroup(TesFileReader fr, bool readRecord = true)
        {
            GRUP     = new TesString(fr);
            DataSize = new TesUInt32(fr);
            OutputItems.Add(GRUP);
            OutputItems.Add(DataSize);

            //グループタイプ別
            uint type = fr.GetUInt32(4, false);

            switch (type)
            {
            case 0:
                Signature = new TesString(fr);
                OutputItems.Add(Signature);
                break;

            case 1:
            case 6:
            case 8:
            case 9:
                FormID = new TesUInt32(fr);
                OutputItems.Add(FormID);
                break;

            case 2:
            case 3:
                Index = new TesUInt32(fr);
                OutputItems.Add(Index);
                break;

            case 4:
            case 5:
                Grid = new TesCellGrid(fr);
                OutputItems.Add(Grid);
                break;

            default:
                throw new Exception();
            }
            GroupType = new TesUInt32(fr);
            Other     = new TesBytes(fr.GetBytes(8));
            OutputItems.Add(GroupType);
            OutputItems.Add(Other);

            if (readRecord)
            {
                while (!fr.EOF)
                {
                    Records.Add(new TesRecord(fr.GetRecord()));
                }
            }
            OutputItems.Add(Records);
        }
Пример #3
0
 public TesHeader(string signature, uint formID)
 {
     Signature           = new TesString(signature);
     DataSize            = new TesUInt32(0);
     RecordFlags         = new TesUInt32(0);
     FormID              = new TesUInt32(formID);
     VersionControlInfo1 = new TesUInt32(0);
     FormVersion         = new TesUInt16(0x2c);
     VersionControlInfo2 = new TesUInt16(0);
     Initialize();
 }
Пример #4
0
 public TesHeader(TesFileReader fr)
 {
     Signature           = new TesString(fr);
     DataSize            = new TesUInt32(fr);
     RecordFlags         = new TesUInt32(fr);
     FormID              = new TesUInt32(fr);
     VersionControlInfo1 = new TesUInt32(fr);
     FormVersion         = new TesUInt16(fr);
     VersionControlInfo2 = new TesUInt16(fr);
     Initialize();
 }
Пример #5
0
        public TesXTEL() : base("XTEL")
        {
            Door     = new TesUInt32(0);
            Position = new Tes3DPos(0, 0, 0);
            Rotation = new TesRotation(0, 0, 0);
            Flags    = new TesUInt32(0);

            OutputItems.Add(Door);
            OutputItems.Add(Position);
            OutputItems.Add(Rotation);
            OutputItems.Add(Flags);
        }