Server.Guilds.AllianceInfo.AllianceChat C# (CSharp) Méthode

AllianceChat() public méthode

public AllianceChat ( Server.Mobile from, int hue, string text ) : void
from Server.Mobile
hue int
text string
Résultat void
		public void AllianceChat( Mobile from, int hue, string text )
		{
			Packet p = null;
			for( int i = 0; i < m_Members.Count; i++ )
			{
				Guild g = m_Members[i];

				for( int j = 0; j < g.Members.Count; j++ )
				{
					Mobile m = g.Members[j];

					NetState state = m.NetState;

					if( state != null )
					{
						if( p == null )
							p = Packet.Acquire( new UnicodeMessage( from.Serial, from.Body, MessageType.Alliance, hue, 3, from.Language, from.Name, text ) );

						state.Send( p );
					}
				}
			}

			Packet.Release( p );
		}

Same methods

AllianceInfo::AllianceChat ( Server.Mobile from, string text ) : void