public override string ToString() { StringBuilder sb = new StringBuilder("Instance["); sb.Append("InstanceId=" + InstanceId); sb.Append(","); sb.Append("HostName=" + HostName); sb.Append(","); sb.Append("IpAddr=" + IpAddr); sb.Append(","); sb.Append("Status=" + Status.ToString()); sb.Append(","); sb.Append("IsUnsecurePortEnabled=" + IsUnsecurePortEnabled); sb.Append(","); sb.Append("Port=" + Port); sb.Append(","); sb.Append("IsSecurePortEnabled=" + IsSecurePortEnabled); sb.Append(","); sb.Append("SecurePort=" + SecurePort); sb.Append(","); sb.Append("VipAddress=" + VipAddress); sb.Append(","); sb.Append("SecureVipAddress=" + SecureVipAddress); sb.Append(","); sb.Append("ActionType=" + Actiontype.ToString()); sb.Append("]"); return(sb.ToString()); }
/// <summary> /// /// </summary> /// <param name="actionid"> /// 留言的actionid为保留id为6; /// 留言回复的actionid为7; /// 其它留言类操作请填8</param> public Note(int woldid, Actiontype actionid) : base(woldid, Optype.Msg, actionid) { }
/// <summary> /// /// </summary> /// <param name="actionid">(支付消费为5,支付充值为15)</param> public PayLog(int woldid, Actiontype actionid) : base(woldid, Optype.Pay, actionid) { }
/// <summary> /// /// </summary> /// <param name="actionid">(其它,100以上)</param> public LogVariant(int woldid, Actiontype actionid) : base(woldid, Optype.Other, actionid) { m_value = new Variant(); }
/// <summary> /// 动态日志记录 /// </summary> /// <param name="t">类型</param> /// <param name="us">使用道具数量</param> /// <param name="gs">得到的道具</param> /// <param name="os">其它</param> public void AddLogVariant(Actiontype t, Variant us, Variant gs, Variant os) { Variant info = new Variant(); if (us != null && us.Count > 0) { info["UseGoods"] = us; } if (gs != null && gs.Count > 0) { info["GetGoods"] = gs; } if (os != null && os.Count > 0) { foreach (var item in os) { info[item.Key] = item.Value; } } LogVariant log = new LogVariant(ServerLogger.zoneid, t); log.Value = info; WriteLog(log); }
/// <summary> /// 添加日志 /// </summary> /// <param name="t">操作类型</param> /// <param name="itemtype"></param> /// <param name="itemcnt"></param> /// <param name="source">来源</param> /// <param name="remark">备注</param> /// <param name="reserve_2"></param> public void AddLog(Actiontype t, string itemtype, int itemcnt, GoodsSource source, string remark, int reserve_2) { PlayerLog log = new PlayerLog(ServerLogger.zoneid, t); log.itemtype = itemtype; log.itemcnt = itemcnt; log.reserve_1 = (int)source; log.remark = remark; log.reserve_2 = reserve_2; this.WriteLog(log); }
protected LogBaseEx(int woldid, Optype optype, Actiontype actionid) : base(woldid, optype, actionid) { }