mirror of
https://git.lewd.wtf/PGR/ascnet
synced 2025-12-12 19:24:36 +01:00
GuideCompleteRequest impl and saving progression
This commit is contained in:
@@ -104,6 +104,11 @@ namespace AscNet.Common.Database
|
||||
Equips.Add(equipData);
|
||||
}
|
||||
|
||||
public void Save()
|
||||
{
|
||||
collection.ReplaceOne(Builders<Character>.Filter.Eq(x => x.Id, Id), this);
|
||||
}
|
||||
|
||||
[BsonId]
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
using MongoDB.Bson;
|
||||
using MongoDB.Driver;
|
||||
using AscNet.Common.MsgPack;
|
||||
using MongoDB.Bson.Serialization;
|
||||
using MongoDB.Bson.Serialization.Options;
|
||||
|
||||
namespace AscNet.Common.Database
|
||||
@@ -89,6 +88,11 @@ namespace AscNet.Common.Database
|
||||
});
|
||||
}
|
||||
|
||||
public void Save()
|
||||
{
|
||||
collection.ReplaceOne(Builders<Player>.Filter.Eq(x => x.Id, Id), this);
|
||||
}
|
||||
|
||||
[BsonId]
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
|
||||
@@ -53,7 +53,12 @@ namespace AscNet.Common.Database
|
||||
{
|
||||
Stages.Add(stageData.StageId, stageData);
|
||||
}
|
||||
|
||||
|
||||
public void Save()
|
||||
{
|
||||
collection.ReplaceOne(Builders<Stage>.Filter.Eq(x => x.Id, Id), this);
|
||||
}
|
||||
|
||||
[BsonId]
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user