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); } }
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()); }
public StringKey(BinaryReader reader, KeyType type) { Time = reader.ReadSingle(); if (type != KeyType.LINEAR_KEY) { throw new Exception("Invalid eKeyType"); } Value = new NiString(reader); }
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); } }
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(); }
public NiStringExtraData(NIFReader file, BinaryReader reader) : base(file, reader) { BytesRemaining = reader.ReadUInt32(); StringData = new NiString(reader); }
public ControlledBlock(BinaryReader reader) { TargetName = new NiString(reader); Controller = new NiRef <NiTimeController>(reader); }