EtiamNullam / Etiam-ONI-Modpack

A bunch of mods made for Klei's Oxygen Not Included.
28 stars 10 forks source link

Add Tag to exclude buildings from being colored #15

Closed asquared31415 closed 4 years ago

asquared31415 commented 4 years ago

Requiring the ID of a building to have NoPaint in it creates long, ugly, and unwieldy names. By also checking for a tag, mod authors can easily exclude their building from being painted by calling go.AddTag(new Tag("NoPaint")); in their building's DoPostConfigureComplete (or otherwise adding that tag to their building)

EtiamNullam commented 4 years ago

Thanks, looks fine. I hope it will help someone.

Updated MaterialColor on Steam Workshop.

asquared31415 commented 4 years ago

Thanks, this should help myself and another developer write cleaner code!