40 FxCop Warnings; good practice

This commit is contained in:
asayre 2010-12-23 09:18:45 +00:00
parent 3f535ea235
commit 34e3a88bfe
30 changed files with 45 additions and 49 deletions

View file

@ -26,7 +26,7 @@ namespace Server.Network {
/// <summary>
/// Handles outgoing packet compression for the network.
/// </summary>
public class Compression {
public static class Compression {
private static int[] _huffmanTable = new int[514]
{
0x2, 0x000, 0x5, 0x01F, 0x6, 0x022, 0x7, 0x034, 0x7, 0x075, 0x6, 0x028, 0x6, 0x03B, 0x7, 0x032,

View file

@ -57,7 +57,7 @@ namespace Server.Network
Encoded = 0xC0
}
public class PacketHandlers
public static class PacketHandlers
{
private static PacketHandler[] m_Handlers;
private static PacketHandler[] m_6017Handlers;

View file

@ -2715,7 +2715,7 @@ namespace Server.Network
}
}
public class AttributeNormalizer
public static class AttributeNormalizer
{
private static int m_Maximum = 25;
private static bool m_Enabled = true;
@ -3997,7 +3997,7 @@ namespace Server.Network
get{ return m_PacketID; }
}
public Packet( int packetID )
protected Packet( int packetID )
{
m_PacketID = packetID;
@ -4015,7 +4015,7 @@ namespace Server.Network
m_Stream.Write( (short) 0 );
}
public Packet( int packetID, int length )
protected Packet( int packetID, int length )
{
m_PacketID = packetID;
m_Length = length;