I'm currently making a game using SMS-like dialogue window(like Discord app), and this SMS-like window should contain all of the previous dialogues and load them at loading a savefile in a new game session.
Also I had to consider minimizing my game savefile, I am finding a method to save all of the dialogue data as simple as possible and load it at once.
What methods can I use?
this is what I was trying btw...
I tried to make a list of the shown dialogues using method like this:
Code: Select all
public void OnConverSationLine(Subtitle subtitle)
{
conversationLog.Add(SubtitleToDialogueInt(subtitle));
}
public int SubtitleToDialogueInt(Subtitle subtitle)
{
int conversationID = subtitle.dialogueEntry.conversationID;
int entryID = subtitle.dialogueEntry.id;
return conversationID * 10000 + entryID;
}
Code: Select all
public static DialogueEntry DialogueIntToDialogueEntry(int dialogueInt)
{
int conversationID = dialogueInt / 10000;
int entryID = dialogueInt % 10000;
return DialogueManager.masterDatabase.GetDialogueEntry(conversationID, entryID);
}