// *********************************************************************** // Assembly : Unity // Author : Kimch // Created : // // Last Modified By : Kimch // Last Modified On : // *********************************************************************** // // // *********************************************************************** using CodeStage.AntiCheat.ObscuredTypes; using System.Collections; using UnityEngine; namespace G { /// /// 邮件类型 /// public enum MailType { /// /// 系统邮件 /// kSystem = 1, } /// /// 邮件 /// public class Mail { #region FIELD /// /// 邮件发送时间 /// private int _sendTimestamp; /// /// 邮件剩余时间 /// private int _remainTimestamp; private ObscuredInt _multiple; #endregion #region PROPERTY /// Gets the identifier.id public int id { get; set; } public int itemId { get; set; } public string mailKey { get; set; } /// Gets the type.邮件类型:1.普通邮件;2.求助; public int mailType { get; set; } /// Gets the avatar.邮件头像.系统默认头像. public string headURL { get; set; } /// Gets the title.邮件标题. public string title { get; set; } /// Gets the content.邮件内容. public string content { get; set; } public int senderId { get; set; } /// Gets the sender.邮件发送人. public string sender { get; set; } /// Gets the give items. public Item.ItemInfo[] giveItems { get; set; } /// Gets the status.0:未打开,1:已打开,2:已操作 public int status { get; set; } public int startTimestamp { get { return _sendTimestamp; } set { _sendTimestamp = value; } } /// Gets the send time.邮件发送时间.显示秒数 public int sendTime { get { return Launch.Timestamp - _sendTimestamp; } } /// /// /// public int endTimestamp { get { return _remainTimestamp; } set { _remainTimestamp = value; } } /// /// /// public int remainTime { get { return _remainTimestamp - Launch.Timestamp; } set { _remainTimestamp = Launch.Timestamp + value; } } /// /// 倍数 /// public int multiple { get { return _multiple; } set { _multiple = value; } } /// /// 本地邮件 /// public bool isLocal { get; set; } /// /// 永久邮件 /// public bool isForever { get; set; } #endregion #region Method public void ChangeStatus(int newstatus) { this.status = newstatus; } #endregion } }