fauxnik / dv-rolling-stock-ownership

A Derail Valley mod that introduces a game mechanic of purchasing and managing rolling stock.
MIT License
5 stars 4 forks source link

Possible CCL integration strategy #74

Open fauxnik opened 6 months ago

fauxnik commented 6 months ago

From Wiz via discord:

Add a postfix to the RecalculateCaches method (base game), CCL calls it every time a new car is loaded, and update your cache of liveries in it. That way all CCL liveries will be included.

This might also allow RSO to not need to reference TrainCarType_to_v2. This is desirable as that dictionary relies on all vanilla rail vehicles—including newly added ones—being defined in the old TrainCarType enum, which is not guaranteed to remain true forever.