Server.Guilds.Guild.InvalidateMemberProperties C# (CSharp) Méthode

InvalidateMemberProperties() public méthode

public InvalidateMemberProperties ( ) : void
Résultat void
		public void InvalidateMemberProperties()
		{
			InvalidateMemberProperties( false );
		}

Same methods

Guild::InvalidateMemberProperties ( bool onlyOPL ) : void

Usage Example

Exemple #1
0
        public void RemoveGuild(Guild g)
        {
            if (m_PendingMembers.Contains(g))
            {
                m_PendingMembers.Remove(g);
            }

            if (m_Members.Contains(g)) // Sanity, just incase someone with a custom script adds a character to BOTH arrays
            {
                m_Members.Remove(g);
                g.InvalidateMemberProperties();

                g.GuildMessage(1070763, Name);    // Your Guild has been removed from the ~1_ALLIANCENAME~ Alliance.
                AllianceMessage(1070764, g.Name); // A Guild has left your Alliance: ~1_GUILDNAME~
            }

            // g.Alliance = null;	//NO G.Alliance call here.  Set the Guild's Alliance to null, if you JUST use RemoveGuild, it removes it from the alliance, but doesn't remove the link from the guild to the alliance.  setting g.Alliance will call this method.
            // to check on OSI: have 3 guilds, make 2 of them a member, one pending.  remove one of the memebers.  alliance still exist?
            // ANSWER: NO

            if (g == m_Leader)
            {
                CalculateAllianceLeader();
            }

            if (m_Members.Count < 2)
            {
                Disband();
            }
        }
All Usage Examples Of Server.Guilds.Guild::InvalidateMemberProperties