1
This commit is contained in:
parent
0651e2e1df
commit
5f633c99df
@ -20,14 +20,17 @@ namespace TypeConvert
|
|||||||
|
|
||||||
void ToPb(const OverReward& v, cs::MFOverReward* pb_obj)
|
void ToPb(const OverReward& v, cs::MFOverReward* pb_obj)
|
||||||
{
|
{
|
||||||
|
pb_obj->mutable_hero()->set_id(v.hero.id);
|
||||||
pb_obj->mutable_hero()->set_curr_gold(v.hero.curr_gold);
|
pb_obj->mutable_hero()->set_curr_gold(v.hero.curr_gold);
|
||||||
pb_obj->mutable_hero()->set_obtain_gold(v.hero.obtain_gold);
|
pb_obj->mutable_hero()->set_obtain_gold(v.hero.obtain_gold);
|
||||||
pb_obj->mutable_hero()->set_gold_limit(v.hero.gold_limit);
|
pb_obj->mutable_hero()->set_gold_limit(v.hero.gold_limit);
|
||||||
|
|
||||||
|
pb_obj->mutable_weapon1()->set_id(v.weapon1.id);
|
||||||
pb_obj->mutable_weapon1()->set_curr_gold(v.weapon1.curr_gold);
|
pb_obj->mutable_weapon1()->set_curr_gold(v.weapon1.curr_gold);
|
||||||
pb_obj->mutable_weapon1()->set_obtain_gold(v.weapon1.obtain_gold);
|
pb_obj->mutable_weapon1()->set_obtain_gold(v.weapon1.obtain_gold);
|
||||||
pb_obj->mutable_weapon1()->set_gold_limit(v.weapon1.gold_limit);
|
pb_obj->mutable_weapon1()->set_gold_limit(v.weapon1.gold_limit);
|
||||||
|
|
||||||
|
pb_obj->mutable_weapon2()->set_id(v.weapon2.id);
|
||||||
pb_obj->mutable_weapon2()->set_curr_gold(v.weapon2.curr_gold);
|
pb_obj->mutable_weapon2()->set_curr_gold(v.weapon2.curr_gold);
|
||||||
pb_obj->mutable_weapon2()->set_obtain_gold(v.weapon2.obtain_gold);
|
pb_obj->mutable_weapon2()->set_obtain_gold(v.weapon2.obtain_gold);
|
||||||
pb_obj->mutable_weapon2()->set_gold_limit(v.weapon2.gold_limit);
|
pb_obj->mutable_weapon2()->set_gold_limit(v.weapon2.gold_limit);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user