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)); }
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)); }