1
This commit is contained in:
parent
6dcb30972d
commit
eeaf28e704
@ -429,6 +429,7 @@ void BattleDataContext::ParseResult(a8::XObject& obj)
|
||||
revive_coin_ = obj.Get("revive_coin");
|
||||
match_mode_ = obj.Get("match_mode");
|
||||
rank_ = obj.Get("rank");
|
||||
battle_times_ = obj.Get("battle_times");
|
||||
current_get_star_ = obj.Get("current_get_star");
|
||||
}
|
||||
level_ = obj.HasKey("level") ? obj.Get("level").GetInt() : 1;
|
||||
@ -1078,3 +1079,8 @@ int BattleDataContext::GetCurrentGetStar()
|
||||
{
|
||||
return current_get_star_;
|
||||
}
|
||||
|
||||
int BattleDataContext::GetBattleTimes()
|
||||
{
|
||||
return battle_times_;
|
||||
}
|
||||
|
@ -84,6 +84,7 @@ struct BattleDataContext
|
||||
int GetHeroLevel();
|
||||
bool IsMainSkill(Skill* skill);
|
||||
int GetCurrentGetStar();
|
||||
int GetBattleTimes();
|
||||
|
||||
private:
|
||||
void Clear();
|
||||
@ -113,6 +114,7 @@ private:
|
||||
int hero_lv_ = 0;
|
||||
|
||||
int current_get_star_ = 0;
|
||||
int battle_times_ = 0;
|
||||
|
||||
int skill1_lv = 1;
|
||||
int skill2_lv = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user