Ejemplo n.º 1
0
 public NiStringsExtraData(NIFReader file, BinaryReader reader) : base(file, reader)
 {
     ExtraStringData = new NiString[reader.ReadUInt32()];
     for (var i = 0; i < ExtraStringData.Length; i++)
     {
         ExtraStringData[i] = new NiString(reader);
     }
 }
Ejemplo n.º 2
0
 public NiObjectNET(NIFReader file, BinaryReader reader) : base(file, reader)
 {
     Name      = new NiString(reader);
     ExtraData = new NiRef <NiExtraData>[]
     {
         new NiRef <NiExtraData>(reader.ReadUInt32())
     };
     Controller = new NiRef <NiTimeController>(reader.ReadUInt32());
 }
Ejemplo n.º 3
0
 public StringKey(BinaryReader reader, KeyType type)
 {
     Time = reader.ReadSingle();
     if (type != KeyType.LINEAR_KEY)
     {
         throw new Exception("Invalid eKeyType");
     }
     Value = new NiString(reader);
 }
Ejemplo n.º 4
0
        public NiSequence(NIFReader file, BinaryReader reader) : base(file, reader)
        {
            Name                = new NiString(reader);
            AccumRootName       = new NiString(reader);
            TextKeys            = new NiRef <NiTextKeyExtraData>(reader);
            NumControlledBlocks = reader.ReadUInt32();

            ControlledBlock = new ControlledBlock[NumControlledBlocks];
            for (var i = 0; i < NumControlledBlocks; i++)
            {
                ControlledBlock[i] = new ControlledBlock(reader);
            }
        }
Ejemplo n.º 5
0
 public NiSourceTexture(NIFReader file, BinaryReader reader) : base(file, reader)
 {
     IsStatic    = true;
     UseExternal = reader.ReadBoolean();
     if (UseExternal)
     {
         FileName = new NiString(reader);
     }
     if (!UseExternal)
     {
         reader.ReadByte();
         InternalTexture = new NiRef <ATextureRenderData>(reader);
     }
     PixelLayout = (PixelLayout)reader.ReadUInt32();
     UseMipmaps  = (MipMapFormat)reader.ReadUInt32();
     AlphaFormat = (AlphaFormat)reader.ReadUInt32();
     IsStatic    = reader.ReadBoolean();
     Unknown     = reader.ReadUInt32();
 }
Ejemplo n.º 6
0
 public NiStringExtraData(NIFReader file, BinaryReader reader) : base(file, reader)
 {
     BytesRemaining = reader.ReadUInt32();
     StringData     = new NiString(reader);
 }
Ejemplo n.º 7
0
 public ControlledBlock(BinaryReader reader)
 {
     TargetName = new NiString(reader);
     Controller = new NiRef <NiTimeController>(reader);
 }