protected override bool ExecCommand(StoryInstance instance, long delta)
 {
     UserThread userThread = instance.Context as UserThread;
     if (null != userThread) {
         ulong guid = m_UserGuid.Value;
         int linkId = m_LinkId.Value;
         int level = m_Level.Value;
         UserInfo ui = userThread.GetUserInfo(guid);
         if (null != ui) {
             MemberInfo mi = new MemberInfo();
             mi.MemberGuid = UserServer.Instance.GlobalProcessThread.GenerateMemberGuid();
             mi.HeroId = linkId;
             mi.Level = level;
             ui.MemberInfos.Add(mi);
         }
     }
     return false;
 }
 private void InitUserinfo(UserInfo ui)
 {
     ui.ResetMoney();
     ui.ResetGold();
     ui.SceneId = 1010;
     ui.Level = 1;
     ui.CreateTime = DateTime.Now;
     ui.SceneId = 200;
     ui.SummonerSkillId = 22;
     //加4个队员
     for (int id = 2; id <= 5; ++id) {
         MemberInfo member = new MemberInfo();
         member.MemberGuid = UserServer.Instance.GlobalProcessThread.GenerateMemberGuid();
         member.HeroId = id;
         member.Level = 1;
         ui.MemberInfos.Add(member);
     }
 }