Example #1
0
 /// <summary>
 /// Add or update animation for this instance
 /// </summary>
 /// <param name="name">Animation name</param>
 /// <param name="path">Original path of resource</param>
 /// <param name="anim">Animation to add</param>
 public void AddAnim(string name, string path, LiveAnim anim)
 {
     Definition.AnimPaths[name] = path;
     Anims[name] = anim;
 }
Example #2
0
 /// <summary>
 /// Add cached animation
 /// </summary>
 /// <param name="path">Path to use</param>
 /// <param name="anim">Animation to add</param>
 public void AddAnim(string path, LiveAnim anim)
 => _anims.Add(path, anim);