예제 #1
0
        public RenderHarvester(Actor self, RenderHarvesterInfo info) : base(self)
        {
            this.info = info;

            harv = self.Trait <Harvester>();
            foreach (var image in info.ImagesByFullness)
            {
                new Animation(image);                   /* just force these to get loaded upfront */
            }
        }
예제 #2
0
        public RenderHarvester(Actor self, RenderHarvesterInfo info)
            : base(self)
        {
            this.info = info;
            harv      = self.Trait <Harvester>();

            // HACK: Force images to be loaded up-front
            foreach (var image in info.ImagesByFullness)
            {
                new Animation(self.World, image);
            }
        }