Exemplo n.º 1
0
    public void SendProgress()
    {
        Dictionary <string, object> progress = new Dictionary <string, object> ();

        progress.Add("score", "499");

        List <object> tags = new List <object> ();

        tags.Add("wizard");

        // send fake player progress
        FuelSDK.SendProgress(progress, tags);
    }
Exemplo n.º 2
0
    public void SendProgress()
    {
        ResetProgressDictionary();

        //Rings Collected
        SetRingsCollectedProgress(100);

        //Red Rings Collected
        SetRedRingsCollectedProgress(100);

        //Distance Run
        Dictionary <string, int> distanceRunDict = new Dictionary <string, int>();

        distanceRunDict ["value"]             = 500;
        progressDictionary["DistanceRunDict"] = distanceRunDict;

        //Score
        Dictionary <string, int> scoreDict = new Dictionary <string, int>();

        scoreDict ["value"]             = 500;
        progressDictionary["ScoreDict"] = scoreDict;

        //Destroy Enemies
        Dictionary <string, int> destroyEnemiesDict = new Dictionary <string, int>();

        destroyEnemiesDict ["value"]             = 500;
        progressDictionary["DestroyEnemiesDict"] = destroyEnemiesDict;

        //Destroy Crabs
        Dictionary <string, int> destroyCrabsDict = new Dictionary <string, int>();

        destroyCrabsDict ["value"]             = 25;
        progressDictionary["DestroyCrabsDict"] = destroyCrabsDict;

        //Destroy Motor Bugs
        Dictionary <string, int> destroyMotorbugsDict = new Dictionary <string, int>();

        destroyMotorbugsDict ["value"]             = 25;
        progressDictionary["DestroyMotorbugsDict"] = destroyMotorbugsDict;

        //Lane Changes
        Dictionary <string, int> laneChangesDict = new Dictionary <string, int>();

        laneChangesDict ["value"]             = 25;
        progressDictionary["LaneChangesDict"] = laneChangesDict;

        //Dashes Used
        Dictionary <string, int> dashesUsedDict = new Dictionary <string, int>();

        dashesUsedDict ["value"]             = 9;
        progressDictionary["DashesUsedDict"] = dashesUsedDict;

        //Jump Obstacle
        Dictionary <string, int> jumpObstacleDict = new Dictionary <string, int>();

        jumpObstacleDict ["value"]             = 9;
        progressDictionary["JumpObstacleDict"] = jumpObstacleDict;

        //Jump Enemy
        Dictionary <string, int> jumpEnemyDict = new Dictionary <string, int>();

        jumpEnemyDict ["value"]             = 9;
        progressDictionary["JumpEnemyDict"] = jumpEnemyDict;

        //Roll Under
        Dictionary <string, int> rollUnderDict = new Dictionary <string, int>();

        rollUnderDict ["value"]             = 9;
        progressDictionary["RollUnderDict"] = rollUnderDict;

        //Roll Distance
        Dictionary <string, int> rollDistanceDict = new Dictionary <string, int>();

        rollDistanceDict ["value"]             = 9;
        progressDictionary["RollDistanceDict"] = rollDistanceDict;

        List <object> ruleFilterTags = new List <object>();

        FuelSDK.SendProgress(progressDictionary, ruleFilterTags);
    }