/// <summary> /// ソートパラメータ設定(フレンド) /// </summary> /// <param name="_friend"></param> public void setSortParamFriend( PacketStructFriend _friend, CharaOnce _baseChara, MasterDataParamChara _master ) { PacketStructUnit _sub = null; if (_friend.unit.link_info == (uint)ServerDataDefine.CHARALINK_TYPE.CHARALINK_TYPE_BASE) { _sub = _friend.unit_link; } int _cost = _master.party_cost; if (_sub != null) { _cost += CharaLinkUtil.GetLinkUnitCost(_sub.id); } UnitParam = new UnitGridParam(); UnitParam.draw_id = (int)_master.draw_id; UnitParam.level = (int)_friend.unit.level; UnitParam.hp = _baseChara.m_CharaHP; UnitParam.pow = _baseChara.m_CharaPow; UnitParam.plus = _baseChara.m_CharaPlusHP + _baseChara.m_CharaPlusPow; UnitParam.cost = _cost; UnitParam.rare = (int)_master.rare; UnitParam.element_int = SortUtil.GetSortNumElement(_master.element); UnitParam.kind_int = SortUtil.GetSortNumKind(_master.kind); UnitParam.sub_kind_int = SortUtil.GetSortNumKind(_master.sub_kind); UnitParam.limitover_lv = (int)_friend.unit.limitover_lv; UnitParam.charm = _baseChara.m_CharaCharm; UnitParam.rank = (int)_friend.user_rank; UnitParam.login_time = SortUtil.GetSortNumLoginTime(_friend.last_play); UnitParam.favorite = MainMenuUtil.ChkFavoridFriend(_friend.user_id); UnitParam.friend_state = (int)_friend.friend_state; }