Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
I created a quick hack that reads the XML definition and outputs a graphviz dot file for the animation next logic and probability.
It labels all animations with name and id.
It labels all Next animations for each of Sequence, Gravity, Border with S, G, B on the arrow along with probability percentage and the actual probability int if probability percentage is not 100%.
To create the dot file I wrote a small console command, I copied the types out of your XML.cs into XmlModel.cs file in my own project. This was done because XML contains a bunch of dependencies on windows forms stuff and I can't just add a project to your single folder solution project easily.
Have attached both files XmlToDot.cs and XmlModel.cs
Id suggest you refactor your app to split XML.cs into XmlProcessing.cs and XmlModel.cs and move XmlModel out to a separate project so that the project can be shared between your DesktopPet and the XmlToDot projects.
I did not send you my project as I believe you want to add it to your solution I expect as a new project.
DesktopPet/ solution for all projects lives here.
I have also adjusted the dot output a bit, it now colours Gravity edges Green, Border edges Blue and shades Sequence edges from light gray to black relative to their probability.
The files are here https://gist.github.com/rluiten/ea7a6f18a8caf7d3739cc4c9858af877
NOTE: You don't need XmlModel.cs as you can create it trivially, but included it just in case.
Refactoring would be a great idea! Giving those windows forms a decent name and give a better structure to the entire project! It is horrible now, I know! I will try to give a better structure to this project in future, I promise.
I'm sure some people may not like it, but most creators would like it as a tool for them selves I have a lot of years of development and keeping anything except a trivial state machine in my head and understanding is nearly impossible.
I am pretty sure a number of creators might like the sheep map as a guide to their own efforts.
Just because it has a word associated with each animation doesn't mean you know what it looks like :).