public void SetStoryArc() { if (!currentEvent.isStoryArc && isInStory) { return; } currentStory = new StoryArcEventsData(); currentStory = eventStorage.storyArcEvents.Find(x => x.storyTitle == currentEvent.storyArc); isInStory = true; ProgressStoryArc(); }
public void LoadSavedData(List <EventDecisionData> prevQueuedData, EventDecisionData prevCurData, StoryArcEventsData prevStoryData) { queuedEventsList = new List <EventDecisionData>(); queuedEventsList.AddRange(prevQueuedData); currentEvent = prevCurData; currentStory = prevStoryData; eventFinished = PlayerGameManager.GetInstance.playerData.eventFinished; savedDataLoaded = true; weeklyEvents = ((int)playerData.level + 1) * 3; ResourceInformationController.GetInstance.currentPanel.weekController.UpdateEndButton(eventFinished, weeklyEvents); }
public void EndStoryArc() { if (isInStory) { playerData.currentRoll = 0.007f; } if (playerData.finishedStories == null) { playerData.finishedStories = new List <StoryArcEventsData>(); } // SAVE ALL ONE TIME STORIES SO THEY WONT REPEAT AGAIN. if (currentStory.repetitionType == StoryRepetitionType.Once) { playerData.finishedStories.Add(currentStory); } currentStory = null; isInStory = false; }
public void ClearSavedData() { queuedDataEventsList.Clear(); curDataEvent = null; curDataStory = null; }
public void SaveCurStory(StoryArcEventsData thisStory) { curDataStory = thisStory; }