61 lines
1.5 KiB
C#
61 lines
1.5 KiB
C#
|
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];
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
[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;
|
|||
|
}
|
|||
|
}
|