Blink.Classes.Animation.Animation C# (CSharp) Method

Animation() public method

public Animation ( Microsoft.Xna.Framework.Graphics.Texture2D s, Vector2 p, float fLen, int fNum, List aList, int facing ) : System
s Microsoft.Xna.Framework.Graphics.Texture2D
p Vector2
fLen float
fNum int
aList List
facing int
return System
        public Animation(Texture2D s, Vector2 p, float fLen, int fNum, List<Animation> aList, int facing)
        {
            sheet = s;
            frameLength = fLen;
            frameNum = fNum;
            pos = p;
            directionFacing = facing;

            frameTimer = 0;
            onFrame = 0;
            frame = new Rectangle(0, 0, (int)(s.Width / fNum), s.Height);

            aniList = aList;
            aniList.Add(this);
        }