public void SaveSecret(string secret) { if (!Secrets.Any(s => s.IsExcluded(secret))) { SavedSecrets.Add(secret); } }
public void SaveSecret(MultiIdCard secret) { if (!Secrets.Any(s => s.IsExcluded(secret))) { SavedSecrets.Add(secret); } }
public void Trigger(string cardId) { if (Secrets.Any(s => s.PossibleSecrets[cardId])) { SetZero(cardId); } else { SetMax(cardId); } }
public void Trigger(string cardId) { if (Secrets.Any(s => s.TryGetSecret(cardId))) { SetZero(cardId); } else { SetMax(cardId); } }
public void Toggle(string cardId) { var excluded = Secrets.Any(s => s.IsExcluded(cardId)); if(excluded) { foreach(var secret in Secrets) secret.Include(cardId); } else Exclude(cardId, false); Refresh(); }
public void Toggle(string cardId) { var excluded = Secrets.Any(s => s.IsExcluded(cardId)); if (excluded) { foreach (var secret in Secrets) { secret.Include(cardId); } } else { Exclude(cardId, false); } OnSecretsChanged?.Invoke(GetSecretList()); }
public void Trigger(string cardId) { var index = SecretHelper.GetSecretIndex(HeroClass, cardId); if (index == -1) { return; } if (Secrets.Any(s => s.PossibleSecrets[index])) { SetZero(index); } else { SetMax(index); } }
public void Toggle(MultiIdCard cardId) { var excluded = Secrets.Any(s => s.IsExcluded(cardId)); if (excluded) { foreach (var secret in Secrets) { secret.Include(cardId); } } else { Exclude(cardId, false); } Refresh(); }
public void AddSecret(UserOrNpcInfo target) { if (!target.IsNpc && Secrets.Any(u => u.UserId == ((UserInfo)target).User.Id)) { return; } else if (Secrets.Any(u => u.Name == target.NickOrName)) { return; } if (target.IsNpc) { Secrets.Add(new Secret(target.NickOrName)); } else { Secrets.Add(new Secret(((UserInfo)target).User)); } }
public void Trigger(string cardId) { var index = SecretHelper.GetSecretIndex(HeroClass, cardId); if (index == -1) { return; } if (Secrets.Any(s => s.PossibleSecrets[index])) { foreach (var secret in Secrets) { secret.PossibleSecrets[index] = false; } } else { foreach (var secret in Secrets) { secret.PossibleSecrets[index] = true; } } }