Пример #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();
 }
Пример #2
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);
        }
Пример #3
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();
 }
Пример #4
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);
 }
Пример #5
0
        public ushort level;        // 角色等级

        public void Read(ByteArray by)
        {
            char_idx  = by.ReadLong();
            char_name = by.ReadString();
            char_type = by.ReadByte();
            level     = by.ReadUShort();
        }
Пример #6
0
 public void Read(ByteArray by)
 {
     account_idx = by.ReadLong();
     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();
 }
Пример #7
0
        public void Read(ByteArray by)
        {
            ushort count = by.ReadUShort();

            for (int i = 0; i < count; ++i)
            {
                long mail_idx = by.ReadLong();
                this.Add(mail_idx);
            }
        }
Пример #8
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;
            }
        }
Пример #9
0
 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();
 }
Пример #10
0
        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();
            }
        }
Пример #11
0
            public void Read(ByteArray by)
            {
                type = (eUnitModType)by.ReadUShort();
                switch (type)
                {
                case eUnitModType.UMT_char_name:
                    value_str = by.ReadString();
                    break;

                default:
                    value_i = by.ReadLong();
                    break;
                }
            }
Пример #12
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字节,方便后期版本兼容
        }
Пример #13
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();
 }
Пример #14
0
        public string char_name;    //名字

        public void Read(ByteArray by)
        {
            char_idx  = by.ReadLong();
            char_name = by.ReadString();
        }
Пример #15
0
        public long         cd_time;//相对2009开始倒计时间

        public void Read(ByteArray by)
        {
            type    = (eCounterType)by.ReadUShort();
            count   = by.ReadUShort();
            cd_time = by.ReadLong();
        }
Пример #16
0
 public void Read(ByteArray by)
 {
     type     = (eUnitType)by.ReadUShort();
     obj_type = by.ReadUInt();
     obj_idx  = by.ReadLong();
 }