This mod alter the tropical rainforest biome : it add a significant amount of new animals and plants to the game and increase fauna and flora diversity.
If we need to use C# for the seasons, we should only do it to the extent needed. setting up a season cycle that can be manipulated in xml or something? I still think we need to keep our defs and texture assignments in xml if possible (like vanilla does).
According to dingo, this may not be too easy.
This is the current code that changes the plants to lose leaves:
in PlantProperties (<plant>)
public void PostLoadSpecial(ThingDef parentDef)
{
if (!this.leaflessGraphicPath.NullOrEmpty())
{
LongEventHandler.ExecuteWhenFinished(delegate
{
this.leaflessGraphic = GraphicDatabase.Get(parentDef.graphicData.graphicClass, this.leaflessGraphicPath, parentDef.graphic.Shader, parentDef.graphicData.drawSize, parentDef.graphicData.color, parentDef.graphicData.colorTwo);
});
}
}
If we need to use C# for the seasons, we should only do it to the extent needed. setting up a season cycle that can be manipulated in xml or something? I still think we need to keep our defs and texture assignments in xml if possible (like vanilla does).
According to dingo, this may not be too easy.
This is the current code that changes the plants to lose leaves: