Example #1
0
 private void ValidateMoveAnimation(Move move, MoveAnimationId id)
 {
     if (id == MoveAnimationId.CausesASoftlock_DontUse)
     {
         ReportConditional($"The move {move.Name} has animation {id}. Although this animation looks cool, it causes a softlock :(");
     }
 }
Example #2
0
 public string GetMoveAnimationUri(MoveAnimationId id)
 {
     if (_moveAnimationCache == null)
     {
         _moveAnimationCache = new Dictionary <MoveAnimationId, string>();
         if (!File.Exists(_moveAnimationFile))
         {
             return("");
         }
         int count = 0;
         foreach (string line in File.ReadAllLines(_moveAnimationFile))
         {
             _moveAnimationCache[(MoveAnimationId)count] = line;
             count++;
         }
     }
     if (_moveAnimationCache.TryGetValue(id, out string uri))
     {
         return(uri);
     }
     return("");
 }
Example #3
0
 public MoveAnimationGridItemViewModel(MoveAnimationId id, MoveAnimation model) : base(id, model)
 {
     Id   = (int)id;
     Name = id.ToString();
 }
Example #4
0
 public MoveAnimationViewModelBase(MoveAnimationId id, MoveAnimation model)
 {
     _id    = id;
     _model = model;
 }