using System; using System.Collections.Generic; using System.Text; namespace Thousandto.Code.Logic { /// /// 消息提示的基类 /// public class MsgInfoBase { //消息 private string _msg = ""; private ItemBase _itemBase = null; //是否自动关闭 private bool _isAutoHide = true; //显示后生存时间 private float _showLifeTime = 5; //消息的优先级 private MsgInfoPriority _priority = MsgInfoPriority.Low; //记录消息的添加时间 private float _recTime = 0; public string Msg { get { return _msg; } set { _msg = value; } } public bool IsAutoHide { get { return _isAutoHide; } set { _isAutoHide = value; } } public float ShowLifeTime { get { return _showLifeTime; } set { _showLifeTime = value; } } public MsgInfoPriority Priority { get { return _priority; } set { _priority = value; } } public ItemBase ItemBase { get{ return _itemBase; } set{ _itemBase = value; } } public float RecTime { get { return _recTime; } set { _recTime = value; } } } }