yae openworld but dialogs aren't triggered

This commit is contained in:
rafi1212122
2023-06-12 20:06:26 +07:00
parent f9e0aa8e1f
commit bfe8347610
26 changed files with 537 additions and 12 deletions

View File

@@ -89,6 +89,7 @@ namespace Common.Database
public uint AbyssGroupLevel { get; set; }
public List<AvatarTeam> AvatarTeamList { get; set; }
public List<CustomAvatarTeam> CustomAvatarTeamList { get; set; }
public List<OpenWorldStoryScheme> OpenWorldStory { get; set; } = new();
public void Save()
{
@@ -108,6 +109,32 @@ namespace Common.Database
Exp = PlayerLevelData.GetInstance().GetMaxPossibleExp();
}
}
public void AddOWStory(uint storyId)
{
OpenWorldStory.Add(new()
{
StoryId = storyId,
StoryProgress = 0,
AcceptTime = (uint)Global.GetUnixInSeconds(),
IsDone = false
});
}
public class OpenWorldStoryScheme : OpenworldStory
{
public bool IsDone;
public OpenworldStory ToProto()
{
return new()
{
StoryId = StoryId,
StoryProgress = StoryProgress,
AcceptTime = AcceptTime
};
}
}
}
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.