Beispiel #1
0
        private Vector2 ColliderRectPivotPrevious = Vector2.zero; /* for Rectangle-Collision */

        public AnimationData()
        {
            ID                 = -1;
            CollisionKind      = KindCollision.NON;
            CollisionComponent = null;

            AnimationDataFlags = null;

            AnimationDataPosition = null;
            AnimationDataRotation = null;
            AnimationDataScaling  = null;

            AnimationDataOpacityRate = null;
            AnimationDataPriority    = null;

            AnimationDataColorBlend       = null;
            AnimationDataVertexCorrection = null;
            AnimationDataOriginOffset     = null;

            AnimationDataAnchorPosition = null;
            AnimationDataAnchorSize     = null;

            AnimationDataTextureTranslate = null;
            AnimationDataTextureRotate    = null;
            AnimationDataTextureScale     = null;
            AnimationDataTextureExpand    = null;

            AnimationDataCollisionRadius = null;

            AnimationDataCell = null;
            AnimationDataUser = null;
        }
        private Vector2 ColliderRectSizePrevious = Vector2.zero; /* for Rectangle-Collision */

        #endregion Fields

        #region Constructors

        public AnimationData()
        {
            ID = -1;
            CollisionKind = KindCollision.NON;
            CollisionComponent = null;

            AnimationDataFlags = null;

            AnimationDataPosition = null;
            AnimationDataRotation = null;
            AnimationDataScaling = null;

            AnimationDataOpacityRate = null;
            AnimationDataPriority = null;

            AnimationDataColorBlend = null;
            AnimationDataVertexCorrection = null;
            AnimationDataOriginOffset = null;

            AnimationDataAnchorPosition = null;
            AnimationDataAnchorSize = null;

            AnimationDataTextureTranslate = null;
            AnimationDataTextureRotate = null;
            AnimationDataTextureScale = null;
            AnimationDataTextureExpand = null;

            AnimationDataCollisionRadius = null;

            AnimationDataCell = null;
            AnimationDataUser = null;
        }