public void Push(PediaV03 data) { data.unlockedIds.AddRange(unlockedIds); data.completedTuts.AddRange(completedTuts); data.popupQueue.AddRange(popupQueue); }
public PediaDataBuffer(PediaV03 pediaData) { unlockedIds = SavedGame.StringsToEnums <PediaDirector.Id>(pediaData.unlockedIds); completedTuts = SavedGame.StringsToEnums <TutorialDirector.Id>(pediaData.completedTuts); popupQueue = SavedGame.StringsToEnums <TutorialDirector.Id>(pediaData.popupQueue); }
public void Push(PediaV03 data) { data.unlockedIds.AddRange(unlockedIds.Where((x) => Enum.IsDefined(typeof(PediaDirector.Id), x) && ModdedIDRegistry.IsValidID(Enum.Parse(typeof(PediaDirector.Id), x)))); data.completedTuts.AddRange(completedTuts.Where((x) => Enum.IsDefined(typeof(TutorialDirector.Id), x) && ModdedIDRegistry.IsValidID(Enum.Parse(typeof(TutorialDirector.Id), x)))); data.popupQueue.AddRange(popupQueue.Where((x) => Enum.IsDefined(typeof(TutorialDirector.Id), x) && ModdedIDRegistry.IsValidID(Enum.Parse(typeof(TutorialDirector.Id), x)))); }