2021-05-01 22:06:12 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Cal;
|
|
|
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
|
using MongoDB.Bson.Serialization.Options;
|
|
|
|
|
|
|
|
|
|
namespace ET
|
|
|
|
|
{
|
|
|
|
|
public enum StarSoulItemSortType: byte
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 优先品质
|
|
|
|
|
/// </summary>
|
|
|
|
|
QualityFirst,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 优先套装
|
|
|
|
|
/// </summary>
|
|
|
|
|
TypeFirst,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 优先等级
|
|
|
|
|
/// </summary>
|
|
|
|
|
LevelFirst,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class StarSoulItem
|
|
|
|
|
{
|
|
|
|
|
public long Id;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 套装Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int typeId;
|
|
|
|
|
|
|
|
|
|
public byte level;
|
|
|
|
|
public int exp;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 装备栏
|
|
|
|
|
/// </summary>
|
|
|
|
|
public EquipType posType;
|
|
|
|
|
public Quality quality;
|
|
|
|
|
public bool isUsed;
|
|
|
|
|
|
|
|
|
|
// [BsonRepresentation(MongoDB.Bson.BsonType.Double, AllowTruncation = true)]
|
|
|
|
|
public int mainId;
|
|
|
|
|
public int[] viceIds = new int[4];
|
|
|
|
|
[BsonRepresentation(MongoDB.Bson.BsonType.Double, AllowTruncation = true)]
|
|
|
|
|
public float[] viceAdd = new float[4];
|
|
|
|
|
|
2021-05-02 23:18:14 +08:00
|
|
|
|
public byte addViceCount;
|
|
|
|
|
|
2021-05-01 22:06:12 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[BsonIgnoreExtraElements]
|
|
|
|
|
public class StarSoulBag: Entity
|
|
|
|
|
{
|
|
|
|
|
public const ushort MaxCount = 1000;
|
|
|
|
|
public int ItemCount;
|
|
|
|
|
[BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
|
|
|
|
|
public SortedDictionary<long, StarSoulItem> itemDic = new SortedDictionary<long, StarSoulItem>();
|
|
|
|
|
public long lastSortTime;
|
|
|
|
|
public const int sortTimeIntervel = 120 * 1000;
|
|
|
|
|
}
|
|
|
|
|
}
|