Esempio n. 1
0
 public Matrix2x2(Matrix2x2 matrix)
 {
     _m00 = matrix._m00;
     _m01 = matrix._m01;
     _m10 = matrix._m10;
     _m11 = matrix._m11;
 }
Esempio n. 2
0
        private readonly uint _unknown; // usually 0, 0x00CB0065 in character 0x1D of OnlineOpenPlay

        #endregion Fields

        #region Constructors

        public unsafe FramePlaceObject(byte* pBuffer, byte* pBufferStart)
            : base(&pBuffer)
        {
            _flags = (FramePlaceObjectType)(*(uint*)pBuffer);
            pBuffer += 4;
            _depth = *(uint*)pBuffer;
            pBuffer += 4;
            _character = *(int*)pBuffer;
            pBuffer += 4;
            _rotation = new Matrix2x2(&pBuffer);
            _translation = new Vector2(&pBuffer);
            _color = new Color(&pBuffer);
            _unknown = *(uint*)pBuffer;
            pBuffer += 4;
            _ratio = *(float*)pBuffer;
            if ((_flags & FramePlaceObjectType.NAME) != 0)
            {
                _name = BufferReader.ReadString(pBufferStart + *(uint*)pBuffer);
            }
            pBuffer += 4;
            _clipDepth = *(int*)pBuffer;
            pBuffer += 4;
            if ((_flags & FramePlaceObjectType.CLIP_ACTIONS) != 0)
            {
                _script = new FramePlaceObjectActionScript(pBufferStart + *(uint*)pBuffer, pBufferStart);
            }
        }