Example #1
0
		private void LogItemEvent(GuildBankLogEntryType type, Character actor, ItemRecord record, int amount, GuildBankTab intoTab)
		{
			var entry = new GuildBankLogEntry(Bank.Guild.Id)
			{
				Type = type,
				Actor = actor,
				BankLog = this,
				DestinationTab = intoTab,
				ItemEntryId = (int)record.EntryId,
				ItemStackCount = (int)amount,
				Created = DateTime.Now
			};

			lock (moneyLogEntries)
			{
				moneyLogEntries.Insert(entry);
			}
		}
Example #2
0
		private static void OnEntryDeleted(GuildBankLogEntry obj)
		{
			RealmWorldDBMgr.DatabaseProvider.Delete(obj);
		}
Example #3
0
		} // end method

		private void LogMoneyEvent(GuildBankLogEntryType type, Character actor, uint money)
		{
			var entry = new GuildBankLogEntry(Bank.Guild.Id)
			{
				Type = type,
				Actor = actor,
				BankLog = this,
				Money = (int)money,
				Created = DateTime.Now
			};

			RealmWorldDBMgr.DatabaseProvider.SaveOrUpdate(entry);

			lock (itemLogEntries)
			{
				itemLogEntries.Insert(entry);
			}
		}