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 :("); } }
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(""); }
public MoveAnimationGridItemViewModel(MoveAnimationId id, MoveAnimation model) : base(id, model) { Id = (int)id; Name = id.ToString(); }
public MoveAnimationViewModelBase(MoveAnimationId id, MoveAnimation model) { _id = id; _model = model; }