コード例 #1
0
ファイル: WithFire.cs プロジェクト: voidAsterisk/OpenRA
        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));
        }
コード例 #2
0
ファイル: WithFire.cs プロジェクト: philipbutkiewicz/OpenRA
        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));
        }