Beispiel #1
0
        public WithFire(Actor self, WithFireInfo info)
        {
            var rs   = self.Trait <RenderSprites>();
            var fire = new Animation(self.World, rs.GetImage(self));

            fire.PlayThen(info.StartSequence, () => fire.PlayRepeating(info.LoopSequence));
            rs.Add("fire", new AnimationWithOffset(fire, null, null, 1024));
        }
Beispiel #2
0
        public WithFire(Actor self, WithFireInfo info)
        {
            var rs   = self.Trait <RenderSprites>();
            var roof = new Animation(self.World, rs.GetImage(self));

            roof.PlayThen("fire-start", () => roof.PlayRepeating("fire-loop"));
            rs.Add("fire", new AnimationWithOffset(roof, null, null, 1024));
        }