Esempio n. 1
0
 public void Read(ByteArray by)
 {
     char_idx         = by.ReadLong();
     account_index    = by.ReadLong();
     spid             = by.ReadUShort();
     char_name        = by.ReadString();
     char_type        = by.ReadByte();
     ws_id            = by.ReadUShort();
     ss_id            = by.ReadUShort();
     fs_id            = by.ReadUShort();
     pos_x            = by.ReadInt();
     pos_y            = by.ReadInt();
     scene_type_idx   = by.ReadUInt();
     scene_obj_idx    = by.ReadLong();
     flags            = by.ReadUInt();
     model_idx        = by.ReadUInt();
     job              = by.ReadByte();
     level            = by.ReadUShort();
     exp              = by.ReadUInt();
     energy           = by.ReadUInt();
     gold             = by.ReadUInt();
     coin             = by.ReadUInt();
     hp               = by.ReadUInt();
     hp_max           = by.ReadUInt();
     hurt             = by.ReadUInt();
     range            = by.ReadUInt();
     run_speed        = by.ReadUInt();
     vip_grade        = by.ReadUInt();
     vip_flags        = by.ReadUInt();
     time_last_login  = by.ReadLong();
     time_last_logout = by.ReadLong();
 }
Esempio n. 2
0
        public ushort level;        // 角色等级

        public void Read(ByteArray by)
        {
            char_idx  = by.ReadLong();
            char_name = by.ReadString();
            char_type = by.ReadByte();
            level     = by.ReadUShort();
        }
Esempio n. 3
0
 public void Read(ByteArray by)
 {
     char_idx  = by.ReadLong();
     spid      = by.ReadUShort();
     char_name = by.ReadString();
     char_type = by.ReadByte();
     ws_id     = by.ReadUShort();
     flags     = by.ReadUInt();
     model_idx = by.ReadUInt();
     job       = by.ReadByte();
     level     = by.ReadUShort();
     exp       = by.ReadUInt();
     gold      = by.ReadUInt();
     coin      = by.ReadUInt();
     vip_grade = by.ReadUInt();
 }
Esempio n. 4
0
        public RelationEventContent bin_content;     // 内容

        public void Read(ByteArray by)
        {
            event_idx       = by.ReadLong();
            target_char_idx = by.ReadLong();
            source_char_idx = by.ReadLong();
            event_type      = (eRelationEvent)by.ReadByte();
            bin_content.Read(by);
        }
Esempio n. 5
0
        public uint vip_grade;      // vip等级

        public void Read(ByteArray by)
        {
            int start_pos = by.Head;

            char_idx  = by.ReadLong();
            spid      = by.ReadUShort();
            char_name = by.ReadString();
            char_type = by.ReadByte();
            ws_id     = by.ReadUShort();
            flags     = (eRelationFlag)by.ReadByte();
            model_idx = by.ReadUInt();
            job       = by.ReadByte();
            level     = by.ReadUShort();
            exp       = by.ReadUInt();
            gold      = by.ReadUInt();
            coin      = by.ReadUInt();
            vip_grade = by.ReadUInt();
            by.SetHead(start_pos + 200);//每个关系预留200字节,方便后期版本兼容
        }
Esempio n. 6
0
        public string           char_name; //根据名称
        public void Read(ByteArray by)
        {
            type = (eRelationAddType)(by.ReadByte());
            switch (type)
            {
            case eRelationAddType.Idx: char_idx = by.ReadLong(); break;

            case eRelationAddType.Name: char_name = by.ReadString(); break;
            }
        }
 public void Read(ByteArray by)
 {
     char_idx  = by.ReadLong();
     char_name = by.ReadString();
     char_type = by.ReadByte();
     spid      = by.ReadUShort();
     ws_id     = by.ReadUShort();
     ss_id     = by.ReadUShort();
     fs_id     = by.ReadUShort();
 }
Esempio n. 8
0
 public void Read(ByteArray by)
 {
     mail_idx    = by.ReadLong();
     mail_type   = (eMailType)by.ReadByte();
     sender_idx  = by.ReadLong();
     sender_name = by.ReadString();
     send_time   = by.ReadLong();
     expire_time = by.ReadInt();
     flags       = by.ReadUInt();
     subject     = by.ReadString();
 }
        public string       char_name; //按名字

        public void Read(ByteArray by)
        {
            type = (eIdxNameType)by.ReadByte();
            if (type == eIdxNameType.CHARID)
            {
                char_idx = by.ReadLong();
            }
            else
            {
                char_name = by.ReadString();
            }
        }
Esempio n. 10
0
 public void Read(ByteArray by)
 {
     char_idx  = by.ReadLong();
     char_name = by.ReadString();
     char_type = by.ReadByte();
     flags     = by.ReadUInt();
     model_idx = by.ReadUInt();
     job       = by.ReadByte();
     level     = by.ReadUShort();
     exp       = by.ReadUInt();
     energy    = by.ReadUInt();
     gold      = by.ReadUInt();
     coin      = by.ReadUInt();
     hp        = by.ReadUInt();
     hp_max    = by.ReadUInt();
     hurt      = by.ReadUInt();
     range     = by.ReadUInt();
     run_speed = by.ReadUInt();
     vip_grade = by.ReadUInt();
     vip_flags = by.ReadUInt();
 }
Esempio n. 11
0
        public void Read(ByteArray by)
        {
            content_type = (eMailContentType)by.ReadByte();
            switch (content_type)
            {
            case eMailContentType.NORMAL: bin_normal_content.Read(by); break;

            case eMailContentType.NOTICE: bin_notice_content.Read(by); break;

            case eMailContentType.SEND_ITEMS: bin_item_content.Read(by); break;

            case eMailContentType.MOD: bin_mod_content.Read(by); break;
            }
        }
Esempio n. 12
0
 public void Read(ByteArray by)
 {
     mail_idx      = by.ReadLong();
     mail_type     = (eMailType)by.ReadByte();
     spid          = by.ReadUShort();
     receiver_idx  = by.ReadLong();
     sender_idx    = by.ReadLong();
     sender_name   = by.ReadString();
     send_time     = by.ReadLong();
     expire_time   = by.ReadInt();
     delivery_time = by.ReadInt();
     flags         = by.ReadUInt();
     subject       = by.ReadString();
     bin_mail_content.Read(by);
 }
Esempio n. 13
0
        public void Read(ByteArray by)
        {
            notice_type = (eMailNoticeType)by.ReadByte();
            switch (notice_type)
            {
            case eMailNoticeType.GuildAppSucc: notice_guide_app_success.Read(by); break;

            case eMailNoticeType.GuildAppFail: notice_guide_app_fail.Read(by); break;

            case eMailNoticeType.GuildDismiss: notice_guide_dismiss.Read(by); break;

            case eMailNoticeType.GuildOut: notice_guide_out.Read(by); break;

            case eMailNoticeType.GuildExit: notice_guide_exit.Read(by); break;

            default: break;
            }
        }
Esempio n. 14
0
 public byte   type; //拒绝1 或者 超时2
 public void Read(ByteArray by)
 {
     name = by.ReadString();
     type = by.ReadByte();
 }
Esempio n. 15
0
 public void Read(ByteArray by)
 {
     flag = (eRelationFlag)(by.ReadByte());
     cmd  = (eRelationApplyCmd)(by.ReadByte());
 }
Esempio n. 16
0
 public void Read(ByteArray by)
 {
     type      = (ePropType)by.ReadByte();
     obj_type  = by.ReadUInt();
     obj_value = by.ReadLong();
 }
Esempio n. 17
0
            public eRelationFlag flag; //关系方式

            public void Read(ByteArray by)
            {
                char_name = by.ReadString();
                message   = by.ReadString();
                flag      = (eRelationFlag)by.ReadByte();
            }