public void Overall(RewardableState state, int numberRewards, RewardStrands strands) { CommandHandler currentHandler; if (m_Commands.TryGetValue(CommandReceiver.OVERALL, out currentHandler)) { currentHandler(state, numberRewards, strands); } }
public void ParseOverall(JsonData json) { int overallPercent = JsonUtil.ParseInteger(json["percent"]); RewardableState overallState = new RewardableState(json["state"], overallPercent); int numberRewards = JsonUtil.ParseInteger(json["numberRewards"]); RewardStrands strands = new RewardStrands(json["strands"]); m_CommandExecutor.Overall(overallState, numberRewards, strands); }