Exemplo n.º 1
0
        /* public override void DrawWorker(
         * Vector3 loc,
         * Rot4 rot,
         * ThingDef thingDef,
         * Thing thing,
         * float extraRotation)
         * {
         *   this.SubGraphicFor(thing).DrawWorker(loc, rot, thingDef, thing, extraRotation);
         * }
         */
        public AvaliGraphic SubGraphicFor(Thing thing)
        {
            StuffAppearanceDef smooth = StuffAppearanceDefOf.Smooth;

            return(thing != null?this.SubGraphicFor(thing.Stuff) : this.subGraphics[(int)smooth.index]);
        }