Esempio n. 1
0
        public virtual IEnumerable <Renderable> RenderPreview(ActorInfo building, Player owner)
        {
            var anim = new Animation(RenderSimple.GetImage(building), () => 0);

            anim.PlayRepeating("idle");
            yield return(new Renderable(anim.Image, 0.5f * anim.Image.size * (1 - Scale),
                                        Palette ?? (owner != null ? PlayerPalette + owner.InternalName : null), 0, Scale));
        }
Esempio n. 2
0
        public virtual IEnumerable <IRenderable> RenderPreview(World world, ActorInfo ai, PaletteReference pr)
        {
            var anim = new Animation(world, RenderSimple.GetImage(ai), () => 0);

            anim.PlayRepeating("idle");

            return(anim.Render(WPos.Zero, WVec.Zero, 0, pr, Scale));
        }
Esempio n. 3
0
        public virtual IEnumerable <Renderable> RenderPreview(ActorInfo building, PaletteReference pr)
        {
            var anim = new Animation(RenderSimple.GetImage(building), () => 0);

            anim.PlayRepeating("idle");

            yield return(new Renderable(anim.Image, 0.5f * anim.Image.size * (1 - Scale), pr, 0, Scale));
        }