Beispiel #1
0
        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);
        }
Beispiel #2
0
 protected cAnimatedSpriteRenderer(cAnimatedSpriteRenderer other) : base(other)
 {
     this.AnimationSrc = new cAnimation(other.AnimationSrc.AnimData);
 }
Beispiel #3
0
 public AnimatedEffect()
 {
     this.Centre    = new Vector2f();
     this.Animation = null;
 }