Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -2,76 +2,76 @@ using Server.Network;
|
|||
|
||||
namespace Server.Engines.PartySystem
|
||||
{
|
||||
public sealed class PartyEmptyList : Packet
|
||||
{
|
||||
public PartyEmptyList( Mobile m ) : base( 0xBF )
|
||||
{
|
||||
EnsureCapacity( 7 );
|
||||
public sealed class PartyEmptyList : Packet
|
||||
{
|
||||
public PartyEmptyList(Mobile m) : base(0xBF)
|
||||
{
|
||||
EnsureCapacity(7);
|
||||
|
||||
m_Stream.Write( (short) 0x0006 );
|
||||
m_Stream.Write( (byte) 0x02 );
|
||||
m_Stream.Write( (byte) 0 );
|
||||
m_Stream.Write( (int) m.Serial );
|
||||
}
|
||||
}
|
||||
m_Stream.Write((short)0x0006);
|
||||
m_Stream.Write((byte)0x02);
|
||||
m_Stream.Write((byte)0);
|
||||
m_Stream.Write(m.Serial);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class PartyMemberList : Packet
|
||||
{
|
||||
public PartyMemberList( Party p ) : base( 0xBF )
|
||||
{
|
||||
EnsureCapacity( 7 + p.Count*4 );
|
||||
public sealed class PartyMemberList : Packet
|
||||
{
|
||||
public PartyMemberList(Party p) : base(0xBF)
|
||||
{
|
||||
EnsureCapacity(7 + p.Count * 4);
|
||||
|
||||
m_Stream.Write( (short) 0x0006 );
|
||||
m_Stream.Write( (byte) 0x01 );
|
||||
m_Stream.Write( (byte) p.Count );
|
||||
m_Stream.Write((short)0x0006);
|
||||
m_Stream.Write((byte)0x01);
|
||||
m_Stream.Write((byte)p.Count);
|
||||
|
||||
for ( int i = 0; i < p.Count; ++i )
|
||||
m_Stream.Write( (int) p[i].Mobile.Serial );
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < p.Count; ++i)
|
||||
m_Stream.Write(p[i].Mobile.Serial);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class PartyRemoveMember : Packet
|
||||
{
|
||||
public PartyRemoveMember( Mobile removed, Party p ) : base( 0xBF )
|
||||
{
|
||||
EnsureCapacity( 11 + p.Count*4 );
|
||||
public sealed class PartyRemoveMember : Packet
|
||||
{
|
||||
public PartyRemoveMember(Mobile removed, Party p) : base(0xBF)
|
||||
{
|
||||
EnsureCapacity(11 + p.Count * 4);
|
||||
|
||||
m_Stream.Write( (short) 0x0006 );
|
||||
m_Stream.Write( (byte) 0x02 );
|
||||
m_Stream.Write( (byte) p.Count );
|
||||
m_Stream.Write((short)0x0006);
|
||||
m_Stream.Write((byte)0x02);
|
||||
m_Stream.Write((byte)p.Count);
|
||||
|
||||
m_Stream.Write( (int) removed.Serial );
|
||||
m_Stream.Write(removed.Serial);
|
||||
|
||||
for ( int i = 0; i < p.Count; ++i )
|
||||
m_Stream.Write( (int) p[i].Mobile.Serial );
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < p.Count; ++i)
|
||||
m_Stream.Write(p[i].Mobile.Serial);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class PartyTextMessage : Packet
|
||||
{
|
||||
public PartyTextMessage( bool toAll, Mobile from, string text ) : base( 0xBF )
|
||||
{
|
||||
if ( text == null )
|
||||
text = "";
|
||||
public sealed class PartyTextMessage : Packet
|
||||
{
|
||||
public PartyTextMessage(bool toAll, Mobile from, string text) : base(0xBF)
|
||||
{
|
||||
if (text == null)
|
||||
text = "";
|
||||
|
||||
EnsureCapacity( 12 + text.Length*2 );
|
||||
EnsureCapacity(12 + text.Length * 2);
|
||||
|
||||
m_Stream.Write( (short) 0x0006 );
|
||||
m_Stream.Write( (byte) (toAll ? 0x04 : 0x03) );
|
||||
m_Stream.Write( (int) from.Serial );
|
||||
m_Stream.WriteBigUniNull( text );
|
||||
}
|
||||
}
|
||||
m_Stream.Write((short)0x0006);
|
||||
m_Stream.Write((byte)(toAll ? 0x04 : 0x03));
|
||||
m_Stream.Write(from.Serial);
|
||||
m_Stream.WriteBigUniNull(text);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class PartyInvitation : Packet
|
||||
{
|
||||
public PartyInvitation( Mobile leader ) : base( 0xBF )
|
||||
{
|
||||
EnsureCapacity( 10 );
|
||||
public sealed class PartyInvitation : Packet
|
||||
{
|
||||
public PartyInvitation(Mobile leader) : base(0xBF)
|
||||
{
|
||||
EnsureCapacity(10);
|
||||
|
||||
m_Stream.Write( (short) 0x0006 );
|
||||
m_Stream.Write( (byte) 0x07 );
|
||||
m_Stream.Write( (int) leader.Serial );
|
||||
}
|
||||
}
|
||||
m_Stream.Write((short)0x0006);
|
||||
m_Stream.Write((byte)0x07);
|
||||
m_Stream.Write(leader.Serial);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue