AnimationChainListSaves are the "save" object type for AnimationChainLists. AnimatiohChainListSaves can be used to create and load .achx files. For general information on common FlatRedBall types, see the FlatRedBall File Types wiki entry.
The AnimationChainListSave class is a standardized way to save an AnimationChainList. Using the AnimationChainListSave class has the following benefits:
Requires very little code to use
Resulting files are 100% compatible with the FRBDK or any other application that can load .achx files.
You can load load a AnimationChainListSave as follows:
The following code saves a .achx file named MyAnimationChainList.achx. It assumes that animationChainList is a valid AnimationChainList.
Add the following using statements:
Assumes animationChainList is a valid AnimationChainList:
Of course, you can save a loaded AnimationChainListSave:
Of course, the code above does nothing; however, you can do things to the saveInstance between the load and save calls:
In fact, you can do pretty much anything to an AnimationChainListSave instance and it will result in a valid .achx file when saving it out. This enables you to easily create tools to create and modify .achx files.
Did this article leave any questions unanswered? Post any question in our forums for a rapid response.