예제 #1
0
 public MDXAnimationEvent(BinaryReader br, WarcraftVersion version)
 {
     this.EventName        = new string(br.ReadChars(4));
     this.Data             = br.ReadUInt32();
     this.Bone             = br.ReadUInt32();
     this.RelativePosition = br.ReadVector3();
     this.RaiseEvent       = br.ReadMDXTrack <bool>(version, true);
 }
예제 #2
0
        public MDXBone(BinaryReader br, WarcraftVersion version)
        {
            this.SocketLookupTableIndex = br.ReadInt32();
            this.Flags         = (MDXBoneFlag)br.ReadUInt32();
            this.ParentBone    = br.ReadInt16();
            this.SkinSectionID = br.ReadUInt16();

            if (version >= WarcraftVersion.BurningCrusade)
            {
                this.DistanceToFurtherDesc = br.ReadUInt16();
                this.ZRationOfBoneChain    = br.ReadUInt16();
            }

            this.Translation = br.ReadMDXTrack <Vector3>(version);
            this.Rotation    = br.ReadMDXTrack <Quaternion>(version);
            this.Scale       = br.ReadMDXTrack <Vector3>(version);

            this.PivotPoint = br.ReadVector3();
        }
예제 #3
0
 public MDXTextureTransform(BinaryReader br, WarcraftVersion version)
 {
     this.Translation = br.ReadMDXTrack <Vector3>(version);
     this.Rotation    = br.ReadMDXTrack <Quaternion>(version);
     this.Scale       = br.ReadMDXTrack <Vector3>(version);
 }
예제 #4
0
 public MDXTextureWeight(BinaryReader br, WarcraftVersion version)
 {
     Weight = br.ReadMDXTrack <short>(version);
 }
예제 #5
0
 public MDXColourAnimation(BinaryReader br, WarcraftVersion version)
 {
     this.ColourTrack  = br.ReadMDXTrack <RGB>(version);
     this.OpacityTrack = br.ReadMDXTrack <short>(version);
 }