public void RemoveMember( long memberId )
        {
            try
            {
                if ( !m_members.ContainsKey( memberId ) )
                    return;

                m_memberToModify = memberId;

                MyObjectBuilder_FactionMember memberToRemove = new MyObjectBuilder_FactionMember( );
                foreach ( MyObjectBuilder_FactionMember member in m_faction.Members )
                {
                    if ( member.PlayerId == m_memberToModify )
                    {
                        memberToRemove = member;
                        break;
                    }
                }
                m_faction.Members.Remove( memberToRemove );

                MySandboxGame.Static.Invoke( InternalRemoveMember );
            }
            catch ( Exception ex )
            {
                ApplicationLog.BaseLog.Error( ex );
            }
        }
 public FactionMember( Faction parent, MyObjectBuilder_FactionMember definition )
 {
     m_parent = parent;
     m_member = definition;
 }
		public void RemoveMember(long memberId)
		{
			try
			{
				if (!m_members.ContainsKey(memberId))
					return;

				m_memberToModify = memberId;

				MyObjectBuilder_FactionMember memberToRemove = new MyObjectBuilder_FactionMember();
				foreach (var member in m_faction.Members)
				{
					if (member.PlayerId == m_memberToModify)
					{
						memberToRemove = member;
						break;
					}
				}
				m_faction.Members.Remove(memberToRemove);

				Action action = InternalRemoveMember;
				SandboxGameAssemblyWrapper.Instance.EnqueueMainGameAction(action);
			}
			catch (Exception ex)
			{
				LogManager.ErrorLog.WriteLine(ex);
			}
		}