static Helper() { Tags.Add(TagName.Room, "Room"); Tags.Add(TagName.MovementCurvy, "MoveCurvy"); Tags.Add(TagName.Difficulty, "Difficulty"); Resource.Add(TagName.RightTarget, "Sprites/RightTarget"); Resource.Add(TagName.WrongTarget, "Sprites/WrongTarget"); Resource.Add(TagName.NeutralTarget, "Sprites/NeutralTarget"); Resource.Add(TagName.DeadTarget, "Sprites/DeadTarget/among-dead"); Resource.Add(TagName.TargetPrefab, "Assets/Client/Prefabs/Target.prefab"); Difficulty.Add(TagName.Easy, "Easy"); Difficulty.Add(TagName.Medium, "Medium"); Difficulty.Add(TagName.Hard, "Hard"); Scenes.Add(TagName.DefaultShootingGallery, "DefaultShootingGallery"); Scenes.Add(TagName.MainMenu, "Menu"); SaveFiles.Add(TagName.PlayerSave, "/SaveFiles.save"); Audio.Add(TagName.AmongDeathSound, "among-death"); Audio.Add(TagName.GunShotSound, "gun-shot"); Audio.Add(TagName.RicochetSound, "ricochet"); Audio.Add(TagName.MistakeShotSound, "mistake-shot"); }
private void FileWalker_ProgressChanged(object sender, ProgressChangedEventArgs e) { if (e.UserState is SaveFileInfo info) { TheSettings.WelcomeList.Add(info.Path); SaveFiles.Add(info); } }
public void PopulateList() { List <string> toRemove = new List <string>(); foreach (string path in TheSettings.WelcomeList) { if (!SaveFileInfo.TryGetInfo(path, out SaveFileInfo info)) { toRemove.Add(path); continue; } SaveFiles.Add(info); } if (toRemove.Count > 0) { foreach (string path in toRemove) { TheSettings.WelcomeList.Remove(path); } } }