/// <summary> /// Returns the reputation points associated with givenf action. /// Returns zero if reputation has NO standing with given faction. /// </summary> /// <param name="factionDataArg"></param> /// <returns></returns> private int GetReputationPointsAssociatedWithFaction(FactionData factionDataArg) { // get standing list entry from given faction SerializableDataFactionDataAndInt matchingData = GetDataEntryAssociatedWithFaction(factionDataArg); // if found a match if (matchingData != null) { return(matchingData.valueInt); } // else NO match found else { // return a default int value return(0); } }
private void Setup(SerializableDataFactionDataAndInt templateArg) { valueFactionData = new FactionData(templateArg.valueFactionData); valueInt = templateArg.valueInt; }
public SerializableDataFactionDataAndInt(SerializableDataFactionDataAndInt templateArg) { Setup(templateArg); }