예제 #1
0
    public void Overall(RewardableState state, int numberRewards, RewardStrands strands)
    {
        CommandHandler currentHandler;

        if (m_Commands.TryGetValue(CommandReceiver.OVERALL, out currentHandler))
        {
            currentHandler(state, numberRewards, strands);
        }
    }
예제 #2
0
    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);
    }