public cAnimatedSpriteRenderer(string sprite_id, MyIntRect view_offset_rect = null, bool repeat = false) : base() { AnimationInfo info = cAnimationAssets.Get(sprite_id); if (view_offset_rect != null) { info.ViewOffsetRect = view_offset_rect; } info.Repeat = repeat; AnimationSrc = new cAnimation(info); }
protected cAnimatedSpriteRenderer(cAnimatedSpriteRenderer other) : base(other) { this.AnimationSrc = new cAnimation(other.AnimationSrc.AnimData); }
public AnimatedEffect() { this.Centre = new Vector2f(); this.Animation = null; }