예제 #1
0
        public virtual void Read(BinaryReader br)
        {
            Color    = new FEColor();
            Pivot    = new FEVector3();
            Position = new FEVector3();
            Rotation = new FEQuaternion();
            Size     = new FEVector3();

            Color.Read(br);
            Pivot.Read(br);
            Position.Read(br);
            Rotation.Read(br);
            Size.Read(br);
        }
예제 #2
0
        public override void Read(BinaryReader br)
        {
            base.Read(br);

            TopLeftUV     = new FEVector2[3];
            BottomRightUV = new FEVector2[3];
            PivotRotation = new FEVector3();

            for (int i = 0; i < TopLeftUV.Length; i++)
            {
                TopLeftUV[i] = new FEVector2();
                TopLeftUV[i].Read(br);
            }

            for (int i = 0; i < BottomRightUV.Length; i++)
            {
                BottomRightUV[i] = new FEVector2();
                BottomRightUV[i].Read(br);
            }

            PivotRotation.Read(br);
        }