public void RegisterSubSerializer(TType packetType, INetworkPacketSubSerializer <TData> subSubSerializer)
    {
        byte b = (byte)((object)packetType);

        this._subSerializerRegistry[subSubSerializer] = b;
        this._messsageHandlers[b] = delegate(NetDataReader reader, int size, TData data)
        {
            subSubSerializer.Deserialize(reader, size, data);
        };
    }