예제 #1
0
        public NiDynamicEffect(BinaryReader reader, NiFile file) : base(reader, file)
        {
            SwitchState = new NiBoolean(reader);

            AffectedNodesCount = reader.ReadUInt32();

            AffectedNodes = new NiPtr <NiNode> [AffectedNodesCount];

            for (var i = 0; i < AffectedNodesCount; i++)
            {
                AffectedNodes[i] = new NiPtr <NiNode>(file, reader.ReadInt32());
            }
        }
예제 #2
0
        public NiSkinInstance(BinaryReader reader, NiFile niFile) : base(reader, niFile)
        {
            SkinningData = new NiRef <NiSkinData>(niFile, reader.ReadInt32());

            SkinPartition = new NiRef <NiSkinPartition>(niFile, reader.ReadInt32());

            Root = new NiRef <NiNode>(niFile, reader.ReadInt32());

            BonesCount = reader.ReadUInt32();

            Bones = new NiPtr <NiNode> [BonesCount];
            for (var i = 0; i < BonesCount; i++)
            {
                Bones[i] = new NiPtr <NiNode>(niFile, reader.ReadInt32());
            }
        }
예제 #3
0
        public NiTimeController(BinaryReader reader, NiFile niFile) : base(reader, niFile)
        {
            Next = new NiRef <NiTimeController>(niFile, reader.ReadInt32());

            Flags = reader.ReadInt16();

            Frequency = reader.ReadSingle();

            Phase = reader.ReadSingle();

            StartTime = reader.ReadSingle();

            StopTime = reader.ReadSingle();

            Target = new NiPtr <NiObjectNet>(niFile, reader.ReadInt32());
        }