private EntityData AddAnim(string name, AnimatorMode mode, float interval, params int[] frames) { if (Anim == null) { Anim = new AnimatorData("entities_16_16"); } Anim.Add(name, mode, interval, frames); return(this); }
public void PushMov(Vector2 Speed, Vector2 SpeedInc, float RotationInc, int _Fdelay) { BalletDescriber B; B.FramesDelay = _Fdelay; B.RotationInc = RotationInc; B.SpeedInc = SpeedInc; B.Speed = Speed; Anim.Add(B); }
private void defineSequence(Anim anim, string name, string frames, int fps) { if (frames == null || frames == "") { frames = "0"; } if (fps <= 0) { fps = 30; } anim.Add(name, frames, fps); }