Switched Initialization for PacketDecoder into static constructor to dummyproof the class

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3208 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Jim Radford
2009-11-03 07:58:22 +00:00
parent f38e73eba1
commit 10c1de4c74
3 changed files with 2 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ namespace OpenMetaverse.Packets
private static Dictionary<string, List<CustomPacketDecoder>> Callbacks = new Dictionary<string, List<CustomPacketDecoder>>();
public static void InitializeDecoder()
static PacketDecoder()
{
AddCallback("Color", DecodeColorField);
AddCallback("TextColor", DecodeColorField);