초기커밋
This commit is contained in:
54
ServerCommon/z.Backup/MinimapMarkerEntity.cs
Normal file
54
ServerCommon/z.Backup/MinimapMarkerEntity.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
//using Amazon.DynamoDBv2.DocumentModel;
|
||||
//using Newtonsoft.Json;
|
||||
//using ServerCore; using ServerBase;
|
||||
|
||||
//namespace ServerCommon.DB
|
||||
//{
|
||||
// public class MinimapMarkerAttr
|
||||
// {
|
||||
// public Dictionary<int, Pos> markerInfos = new Dictionary<int, Pos>();
|
||||
// }
|
||||
|
||||
// public class MinimapMarkerEntity
|
||||
// {
|
||||
// public string PK_Guid { get; private set; } = string.Empty;
|
||||
// public string SK_Empty { get; private set; } = string.Empty;
|
||||
// public MinimapMarkerAttr Attr { get; private set; } = new MinimapMarkerAttr();
|
||||
|
||||
// public MinimapMarkerEntity() { }
|
||||
|
||||
// public MinimapMarkerEntity(Document document)
|
||||
// {
|
||||
// if (!ReadFrom(document))
|
||||
// {
|
||||
// throw new Exception("Attr DeserializeObject error");
|
||||
// }
|
||||
// }
|
||||
|
||||
// public bool ReadFrom(Document document)
|
||||
// {
|
||||
// PK_Guid = document["PK"].AsString().Replace(MainDB.GetPKPrefix(EEntityType.MinimapMarker), "");
|
||||
// SK_Empty = document["SK"].AsString().Replace(MainDB.GetSKPrefix(EEntityType.MinimapMarker), "");
|
||||
|
||||
// var attr = JsonConvert.DeserializeObject<MinimapMarkerAttr>(document["Attr"].AsString());
|
||||
// if (attr == null)
|
||||
// {
|
||||
// Log.getLogger().error($"{PK_Guid} Attr DeserializeObject error");
|
||||
// return false;
|
||||
// }
|
||||
|
||||
// Attr = attr;
|
||||
|
||||
// return true;
|
||||
// }
|
||||
|
||||
// public Document DocumentForUpdate()
|
||||
// {
|
||||
// var document = new Document();
|
||||
// document["PK"] = MainDB.MakePK(EEntityType.MinimapMarker, PK_Guid);
|
||||
// document["SK"] = MainDB.MakeSK(EEntityType.MinimapMarker, SK_Empty);
|
||||
// document["Attr"] = JsonConvert.SerializeObject(Attr);
|
||||
// return document;
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
Reference in New Issue
Block a user