Exemplo n.º 1
0
		public Burns(Actor self, BurnsInfo info)
		{
			Info = info;
			var rs = self.Trait<RenderSimple>();
			var anim = new Animation("fire", () => 0);
				anim.PlayRepeating(Info.Anim);
				rs.anims.Add("fire",
					new AnimationWithOffset(anim, wr => new float2(0, -3), null));
		}
Exemplo n.º 2
0
        public Burns(Actor self, BurnsInfo info)
        {
            Info = info;

            var anim = new Animation("fire", () => 0);

            anim.PlayRepeating(Info.Anim);
            self.Trait <RenderSprites>().anims.Add("fire", anim);
        }
Exemplo n.º 3
0
        public Burns(Actor self, BurnsInfo info)
        {
            Info = info;

            var anim = new Animation(self.World, "fire", () => 0);

            anim.IsDecoration = true;
            anim.PlayRepeating(Info.Anim);
            self.Trait <RenderSprites>().Add("fire", anim);
        }