public static void WriteCharacter(Character ch, NetworkStream stream)
    {
        WriteInt(ch._lifeMax, stream);
        WriteInt(ch._lifeCurrent, stream);
        WriteInt(ch.CurrentActionPoints, stream);
        WriteInt(ch.CurrentMovementPoints, stream);
        WriteString(ch.Name, stream);
        WriteInt(ch.TurnNumber, stream);

        WriteInt(ch.Protections.Count, stream);
        foreach (var pro in ch.Protections)
        {
            WriteElement(pro.Key, stream);
            WriteInt(pro.Value, stream);
        }

        WriteInt(ch.ProtectionsNegative.Count, stream);
        foreach (var pro in ch.ProtectionsNegative)
        {
            WriteElement(pro.Key, stream);
            WriteInt(pro.Value, stream);
        }

        /*WriteInt(ch.GlobalProtection, stream);
        WriteInt(ch.GlobalNegativeProtection, stream);*/

        WriteInt(ch.SommeProtection, stream);
        WriteInt(ch.SommeNegativeProtection, stream);

        WriteInt(ch.GlobalShieldValue, stream);

        WriteInt(ch.DamageModifier, stream);
        WriteInt(ch.HealModifier, stream);
        WriteInt(ch.RangeModifier, stream);
        WriteBool(ch.IsCharacterGetDot(), stream);
        WriteBool(ch.IsCharacterGetHot(), stream);

    }