/// <summary>
        /// メイドを更新する.
        /// 名前が未指定の場合は、statusのlast_nameとfirst_nameから生成する.
        ///
        /// </summary>
        /// <param name="maid0">メイド</param>
        /// <param name="name">メイドの名前</param>
        /// <param name="act"></param>
        /// <returns>別のメイドに変更された場合、trueを返す</returns>
        public bool UpdateMaid(Maid maid0, string name, Action act)
        {
            if (maid0 == null)
            {
                // メイドリストから最初に有効なメイドを取得
                var count = GameMain.Instance.CharacterMgr.GetMaidCount();
                for (var i = 0; i < count; i++)
                {
                    var m = GameMain.Instance.CharacterMgr.GetMaid(i);
                    if (m == null || !m.enabled)
                    {
                        continue;
                    }

                    maid0 = m;
                    break;
                }
            }

            if (CurrentMaid == maid0)
            {
                return(false);
            }
            CurrentMaid = maid0;
            if (CurrentMaid != null)
            {
                MaidName = name ?? MaidHelper.GetName(CurrentMaid);

                isOfficial = CheckOfficial(CurrentMaid);
            }
            else
            {
                MaidName = "(not selected)";
            }
            LogUtil.Debug("maid changed.", MaidName);

            act();

            return(true);
        }
 // Token: 0x06000294 RID: 660 RVA: 0x00016140 File Offset: 0x00014340
 public bool UpdateMaid(Maid maid0, string name, Action act)
 {
     if (maid0 == null)
     {
         int maidCount = GameMain.Instance.CharacterMgr.GetMaidCount();
         for (int i = 0; i < maidCount; i++)
         {
             Maid maid = GameMain.Instance.CharacterMgr.GetMaid(i);
             if (!(maid == null) && maid.enabled)
             {
                 maid0 = maid;
                 break;
             }
         }
     }
     if (this.CurrentMaid == maid0)
     {
         return(false);
     }
     this.CurrentMaid = maid0;
     if (this.CurrentMaid != null)
     {
         this.MaidName   = (name ?? MaidHelper.GetName(this.CurrentMaid));
         this.isOfficial = this.CheckOfficial(this.CurrentMaid);
     }
     else
     {
         this.MaidName = "(not selected)";
     }
     LogUtil.Debug(new object[]
     {
         "maid changed.",
         this.MaidName
     });
     act();
     return(true);
 }