public static void Write(BinaryWriter o, ConfTestArray1 d)
    {
        o.Write(d != null);
        if (d == null)
        {
            return;
        }

        String_Serializer.Write(o, d.address);
        Arr_Int32_Serializer.Write(o, d.random_port);
    }
    public static void Write(BinaryWriter o, ConfTestDict2 d)
    {
        o.Write(d != null);
        if (d == null)
        {
            return;
        }

        o.Write(d.finish_dungeon_id);
        o.Write(d.role_level);
        String_Serializer.Write(o, d.stringId);
    }
    public static void Write(BinaryWriter o, ConfTestArray d)
    {
        o.Write(d != null);
        if (d == null)
        {
            return;
        }

        Arr_ConfTestArray1_Serializer.Write(o, d.address_list);
        String_Serializer.Write(o, d.name);
        o.Write(d.serverid);
    }
    public static ConfTestArray1 Read(BinaryReader o)
    {
        if (o.ReadBoolean() == false)
        {
            return(null);
        }

        ConfTestArray1 d = new ConfTestArray1();

        d.address     = String_Serializer.Read(o);
        d.random_port = Arr_Int32_Serializer.Read(o);
        return(d);
    }
    public static ConfTestDict2 Read(BinaryReader o)
    {
        if (o.ReadBoolean() == false)
        {
            return(null);
        }

        ConfTestDict2 d = new ConfTestDict2();

        d.finish_dungeon_id = o.ReadInt32();
        d.role_level        = o.ReadInt32();
        d.stringId          = String_Serializer.Read(o);
        return(d);
    }
    public static void Write(BinaryWriter o, ConfTestStrings d)
    {
        o.Write(d != null);
        if (d == null)
        {
            return;
        }

        String_Serializer.Write(o, d.fight_result);
        String_Serializer.Write(o, d.login);
        String_Serializer.Write(o, d.main_menu);
        String_Serializer.Write(o, d.new_card);
        String_Serializer.Write(o, d.start_film);
    }
    public static ConfTestArray Read(BinaryReader o)
    {
        if (o.ReadBoolean() == false)
        {
            return(null);
        }

        ConfTestArray d = new ConfTestArray();

        d.address_list = Arr_ConfTestArray1_Serializer.Read(o);
        d.name         = String_Serializer.Read(o);
        d.serverid     = o.ReadInt32();
        return(d);
    }
    public static void Write(BinaryWriter o, String[] d)
    {
        o.Write(d != null);
        if (d == null)
        {
            return;
        }

        int size = d.Length;

        o.Write(size);
        for (int i = 0; i < size; ++i)
        {
            String_Serializer.Write(o, d[i]);
        }
    }
    public static ConfTestStrings Read(BinaryReader o)
    {
        if (o.ReadBoolean() == false)
        {
            return(null);
        }

        ConfTestStrings d = new ConfTestStrings();

        d.fight_result = String_Serializer.Read(o);
        d.login        = String_Serializer.Read(o);
        d.main_menu    = String_Serializer.Read(o);
        d.new_card     = String_Serializer.Read(o);
        d.start_film   = String_Serializer.Read(o);
        return(d);
    }
示例#10
0
    public static void Write(BinaryWriter o, List <string> d)
    {
        o.Write(d != null);
        if (d == null)
        {
            return;
        }

        int size = d.Count;

        o.Write(size);
        for (int i = 0; i < size; ++i)
        {
            String_Serializer.Write(o, d[i]);
        }
    }
示例#11
0
    public static void Write(BinaryWriter o, Dictionary <string, ConfTestDict2> d)
    {
        o.Write(d != null);
        if (d == null)
        {
            return;
        }

        int size = d.Count;

        o.Write(size);
        foreach (var elem in d)
        {
            String_Serializer.Write(o, elem.Key);
            ConfTestDict2_Serializer.Write(o, elem.Value);
        }
    }
示例#12
0
    public static void Write(BinaryWriter o, ConfTestDict d)
    {
        o.Write(d != null);
        if (d == null)
        {
            return;
        }

        String_Serializer.Write(o, d.carrer_icon_path);
        String_Serializer.Write(o, d.desc);
        o.Write(d.hero_id);
        o.Write(d.id);
        o.Write(d.isMale);
        Arr_String_Serializer.Write(o, d.model_female);
        Arr_String_Serializer.Write(o, d.model_male);
        String_Serializer.Write(o, d.name);
    }
    public static String[] Read(BinaryReader o)
    {
        if (o.ReadBoolean() == false)
        {
            return(null);
        }

        String[] d    = null;
        int      size = o.ReadInt32();

        d = new string[size];
        for (int i = 0; i < size; ++i)
        {
            d[i] = String_Serializer.Read(o);
        }
        return(d);
    }
示例#14
0
    public static void Write(BinaryWriter o, ConfTestPrimitive d)
    {
        o.Write(d != null);
        if (d == null)
        {
            return;
        }

        o.Write(d.mBool);
        o.Write(d.mByte);
        o.Write(d.mDataTime.Ticks);
        Decimal_Serializer.Write(o, d.mDec);
        o.Write(d.mDouble);
        o.Write(d.mFloat);
        o.Write(d.mInt);
        o.Write(d.mLong);
        o.Write(d.mShort);
        String_Serializer.Write(o, d.mStr);
    }
示例#15
0
    public static ConfTestDict Read(BinaryReader o)
    {
        if (o.ReadBoolean() == false)
        {
            return(null);
        }

        ConfTestDict d = new ConfTestDict();

        d.carrer_icon_path = String_Serializer.Read(o);
        d.desc             = String_Serializer.Read(o);
        d.hero_id          = o.ReadInt32();
        d.id           = o.ReadInt32();
        d.isMale       = o.ReadBoolean();
        d.model_female = Arr_String_Serializer.Read(o);
        d.model_male   = Arr_String_Serializer.Read(o);
        d.name         = String_Serializer.Read(o);
        return(d);
    }
示例#16
0
    public static List <string> Read(BinaryReader o)
    {
        if (o.ReadBoolean() == false)
        {
            return(null);
        }

        List <string> d    = null;
        int           size = o.ReadInt32();

        d = new List <string>(size);
        for (int i = 0; i < size; ++i)
        {
            string elem;
            elem = String_Serializer.Read(o);
            d.Add(elem);
        }
        return(d);
    }
示例#17
0
    public static Dictionary <string, ConfTestDict2> Read(BinaryReader o)
    {
        if (o.ReadBoolean() == false)
        {
            return(null);
        }

        Dictionary <string, ConfTestDict2> d = null;
        int size = o.ReadInt32();

        d = new Dictionary <string, ConfTestDict2>(size);
        for (int i = 0; i < size; ++i)
        {
            string key;
            key = String_Serializer.Read(o);
            ConfTestDict2 value;
            value = ConfTestDict2_Serializer.Read(o);
            d.Add(key, value);
        }
        return(d);
    }
示例#18
0
    public static ConfTestPrimitive Read(BinaryReader o)
    {
        if (o.ReadBoolean() == false)
        {
            return(null);
        }

        ConfTestPrimitive d = new ConfTestPrimitive();

        d.mBool     = o.ReadBoolean();
        d.mByte     = o.ReadByte();
        d.mDataTime = new DateTime(o.ReadInt64());
        d.mDec      = Decimal_Serializer.Read(o);
        d.mDouble   = o.ReadDouble();
        d.mFloat    = o.ReadSingle();
        d.mInt      = o.ReadInt32();
        d.mLong     = o.ReadInt64();
        d.mShort    = o.ReadInt16();
        d.mStr      = String_Serializer.Read(o);
        return(d);
    }
示例#19
0
    public static Dictionary <Int32, string> Read(BinaryReader o)
    {
        if (o.ReadBoolean() == false)
        {
            return(null);
        }

        Dictionary <Int32, string> d = null;
        int size = o.ReadInt32();

        d = new Dictionary <Int32, string>(size);
        for (int i = 0; i < size; ++i)
        {
            Int32 key;
            key = o.ReadInt32();
            string value;
            value = String_Serializer.Read(o);
            d.Add(key, value);
        }
        return(d);
    }