mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-14 21:44:36 +01:00
yae openworld but dialogs aren't triggered
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user