예제 #1
0
 public void TranslateArbitrationMission(Arbitration ar)
 {
     ar.activation = GetRealTime(ar.activation);
     ar.expiry     = GetRealTime(ar.expiry);
     ar.node       = TranslateNode(ar.node);
     // // trick
     // 不需要trick了
     ar.type = dictTranslators["Mission"].Translate(ar.type);
 }
예제 #2
0
        public static string ToString(Arbitration ar)
        {
            var sb   = new StringBuilder();
            var time = (ar.expiry - DateTime.Now).Humanize(int.MaxValue, CultureInfo.GetCultureInfo("zh-CN"), TimeUnit.Day, TimeUnit.Minute, " ");

            sb.AppendLine($"[{ar.node}] {time} 后过期");
            sb.AppendLine($"-类型:    {ar.type}-{ar.enemy}");
            return(sb.ToString().Trim());
        }