Example #1
0
    /// <summary>
    /// Returns the progress stats set associated with the given character ID.
    /// </summary>
    /// <param name="charIdArg"></param>
    /// <returns></returns>
    private HavenProgressionStatsSet GetCharProgressStatsSet(string charIdArg)
    {
        // get serial data that is asscoiated with given char ID
        SerializableDataStringAndHavenProgressionStatsSet matchingEntry =
            charIdToProgressionStats.FirstOrDefault(
                iterData => iterData.value1 == charIdArg);

        // if match found
        if (matchingEntry != null)
        {
            // return match's prog stat data
            return(matchingEntry.value2);
        }
        // else NO match was found
        else
        {
            // return NULL prog stat data
            return(null);
        }
    }
 private void Setup(SerializableDataStringAndHavenProgressionStatsSet templateArg)
 {
     value1 = templateArg.value1;
     value2 = new HavenProgressionStatsSet(templateArg.value2);
 }
 public SerializableDataStringAndHavenProgressionStatsSet(
     SerializableDataStringAndHavenProgressionStatsSet templateArg)
 {
     Setup(templateArg);
 }