Beispiel #1
0
		public Reputation(ReputationRecord record, Faction faction, int defaultValue, ReputationFlags defaultFlags)
		{
			m_record = record;
			m_record.ReputationIndex = faction.ReputationIndex;
			m_record.Value = defaultValue;
		    m_record.Flags = defaultFlags;

			Faction = faction;
			m_standing = GetStanding(defaultValue);

			RealmWorldDBMgr.DatabaseProvider.SaveOrUpdate(m_record);
		}
Beispiel #2
0
		/// <summary>
		/// Loads an existing Reputation from the given Record.
		/// </summary>
		public Reputation(ReputationRecord record, Faction faction)
		{
			m_record = record;
			Faction = faction;
			m_standing = GetStanding(record.Value);
		}