コード例 #1
0
 internal ProgressionEventViewModel(ProgressionTypes progressionType, int attempts, double score, string gameLevelName1, string gameLevelName2,
                                    string gameLevelName3, string gameLevelName4, string progressionId, bool arenaMode, string arenaName)
 {
     ProgressionType = progressionType;
     Attempts        = attempts;
     Score           = score;
     GameLevelName1  = gameLevelName1;
     GameLevelName2  = gameLevelName2;
     GameLevelName3  = gameLevelName3;
     GameLevelName4  = gameLevelName4;
     ProgressionId   = progressionId;
     ArenaMode       = arenaMode;
     ArenaName       = arenaName;
     DeviceInfo.WriteBaseEventDataViewModel(this.GetType().Name, this);
     Broker.ProgressionEventCreated(this);
 }
コード例 #2
0
 /// <summary>Call PROBA Progression event</summary>
 /// <param name="progressionType">type of progression</param>
 /// <param name="gameLevelName1">name of level</param>
 /// <param name="eventId">progression event ID for linking to achievements (Optional)</param>
 /// <param name="attempts">number of user's attempts (Optional)</param>
 /// <param name="score">user's Score (Optional)</param>
 /// <param name="gameLevelName2">additional name of level or section (Optional)</param>
 /// <param name="gameLevelName3">additional name of level or section (Optional)</param>
 /// <param name="gameLevelName4">additional name of level or section (Optional)</param>
 /// <param name="arenaMode">is progression in arena mode? (Optional)</param>
 /// <param name="arenaName">arena name (Optional)</param>
 public static void ProgressionEvent(ProgressionTypes progressionType, string gameLevelName1, string eventId = "", int attempts = 0, double score = 0.0,
                                     string gameLevelName2 = "level", string gameLevelName3 = "level", string gameLevelName4 = "level", bool arenaMode = false, string arenaName = "arena")
 {
     _ = new ProgressionEventViewModel(progressionType, attempts, score, gameLevelName1, gameLevelName2, gameLevelName3,
                                       gameLevelName4, eventId, arenaMode, arenaName);
 }