boformer / BuildingThemes

Mod for Cities:Skylines
http://steamcommunity.com/sharedfiles/filedetails/?id=466158459
MIT License
13 stars 11 forks source link

Add "parent" XML attribute to a theme #38

Closed bloodypenguin closed 9 years ago

bloodypenguin commented 9 years ago

That would be handy if a user wants to base his theme on some built-in theme or a theme that is already present in the config. If ha wants to ban some buildings from parent theme he may explicitly set "remove" attribute for such buildings.

Ex:

<Themes>
  <Theme name="Berlin" parent="London">
    <Buildings>
      <Building name="TowerBridge" include="false">
    </Buildings>
  </Theme>
</Themes>
bloodypenguin commented 9 years ago

Working on it

bloodypenguin commented 9 years ago

Bad idea. Inheritance may be really confusing for users and may produce loops.