Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seasons #30

Open
lpCoercion opened this issue Nov 12, 2016 · 0 comments
Open

Seasons #30

lpCoercion opened this issue Nov 12, 2016 · 0 comments

Comments

@lpCoercion
Copy link
Collaborator

lpCoercion commented Nov 12, 2016

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);
                });
            }
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant