Example #1
0
        public byte[] GetBytes()
        {
            List <byte> bytes = new List <byte>(0x40)
            {
                (byte)CamType, Priority, (byte)AdjustType, (byte)CollisionType
            };

            unchecked
            {
                bytes.AddRange(BitConverter.GetBytes((ushort)Rotation.X));
                bytes.AddRange(BitConverter.GetBytes((ushort)Rotation.Y));
            }

            bytes.AddRange(Position.GetBytes());
            bytes.AddRange(Scale.GetBytes());

            bytes.AddRange(BitConverter.GetBytes(CameraAngleX));
            bytes.AddRange(BitConverter.GetBytes(CameraAngleY));

            bytes.AddRange(PointA.GetBytes());
            bytes.AddRange(PointB.GetBytes());
            bytes.AddRange(BitConverter.GetBytes(Variable));

            return(bytes.ToArray());
        }
Example #2
0
        public byte[] GetBytes()
        {
            List <byte> bytes = new List <byte>(0x40)
            {
                CamType, Unknown, PanSpeed, Priority
            };

            unchecked
            {
                bytes.AddRange(BitConverter.GetBytes((ushort)Unknown_2));
                bytes.AddRange(BitConverter.GetBytes((ushort)Rotation.Y));
            }

            bytes.AddRange(Position.GetBytes());
            bytes.AddRange(Scale.GetBytes());

            bytes.AddRange(BitConverter.GetBytes(NotUsed));

            bytes.AddRange(PointA.GetBytes());
            bytes.AddRange(PointB.GetBytes());
            bytes.AddRange(BitConverter.GetBytes(Variable));

            return(bytes.ToArray());
        }