Files
DanhengServer-OpenSource/Common/Database/Scene/RaidData.cs
Somebody 91168483a7 Feature:Raid Save & Bug Fix
- Fix the save function
- Improve entering battle part
- Now /relic will not make a popup box
- Normal gacha now can work
- Better gacha item get
2024-07-07 11:31:37 +08:00

56 lines
1.7 KiB
C#

using EggLink.DanhengServer.Database.Lineup;
using EggLink.DanhengServer.Proto;
using EggLink.DanhengServer.Util;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EggLink.DanhengServer.Database.Scene
{
public class RaidData : BaseDatabaseDataHelper
{
[SugarColumn(IsJson = true)]
public Dictionary<int, Dictionary<int, RaidRecord>> RaidRecordDatas { get; set; } = [];
[SugarColumn(IsJson = true)]
[Obsolete("Using RaidRecordDatas")]
public Dictionary<int, RaidRecord> RaidRecordData { get; set; } = [];
//[SugarColumn(IsJson = true, IsNullable = true)]
//public Position? OldPos { get; set; }
//[SugarColumn(IsJson = true, IsNullable = true)]
//public Position? OldRot { get; set; }
//public int OldEntryId { get; set; }
public int CurRaidId { get; set; }
public int CurRaidWorldLevel { get; set; }
}
public class RaidRecord
{
// Basic Info
public int RaidId { get; set; }
public int WorldLevel { get; set; }
public RaidStatus Status { get; set; }
public long FinishTimeStamp { get; set; }
// Lineup Info
public List<LineupAvatarInfo> Lineup { get; set; } = [];
// Scene Info
public Position Pos { get; set; } = new();
public Position Rot { get; set; } = new();
public int PlaneId { get; set; }
public int FloorId { get; set; }
public int EntryId { get; set; }
public Position OldPos { get; set; } = new();
public Position OldRot { get; set; } = new();
public int OldEntryId { get; set; }
}
}