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(); }
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); }
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 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); }
public ushort level; // 角色等级 public void Read(ByteArray by) { char_idx = by.ReadLong(); char_name = by.ReadString(); char_type = by.ReadByte(); level = by.ReadUShort(); }
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(); }
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); } }
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(); }
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(); } }
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; } }
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字节,方便后期版本兼容 }
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(); }
public string char_name; //名字 public void Read(ByteArray by) { char_idx = by.ReadLong(); char_name = by.ReadString(); }
public long cd_time;//相对2009开始倒计时间 public void Read(ByteArray by) { type = (eCounterType)by.ReadUShort(); count = by.ReadUShort(); cd_time = by.ReadLong(); }
public void Read(ByteArray by) { type = (eUnitType)by.ReadUShort(); obj_type = by.ReadUInt(); obj_idx = by.ReadLong(); }