public void load(BinaryReader reader)
        {
            var count = reader.ReadInt32();

            for (var i = 0; i < count; i++)
            {
                var animateAction = AnimateAction.load(reader);
                this.animateActions.Add(animateAction.name, animateAction);
            }
        }
 public bool load(string filename, Sprite sprite)
 {
     this.Sprite = sprite;
     try
     {
         using (var reader = new BinaryReader(File.Open(filename, FileMode.Open)))
         {
             var count = reader.ReadInt32();
             for (var i = 0; i < count; i++)
             {
                 var animateAction = AnimateAction.load(reader);
                 this.animateActions.Add(animateAction.name, animateAction);
             }
         }
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }