public override void DrawWorker(Vector3 loc, Rot4 rot, ThingDef thingDef, Thing thing, float extraRotation) { StuffAppearanceDef stuffAppearanceDef = StuffAppearanceDefOf.Smooth; if (thing != null && thing.Stuff != null && thing.Stuff.stuffProps.appearance != null) { stuffAppearanceDef = thing.Stuff.stuffProps.appearance; } Graphic graphic = this.subGraphics[(int)stuffAppearanceDef.index]; graphic.DrawWorker(loc, rot, thingDef, thing, extraRotation); }
public override void DrawWorker(Vector3 loc, Rot4 rot, ThingDef thingDef, Thing thing, float extraRotation) { Graphic graphic = ((thing == null) ? subGraphics[0] : SubGraphicFor(thing)); graphic.DrawWorker(loc, rot, thingDef, thing, extraRotation); }