Пример #1
0
        private void LogItemEvent(GuildBankLogEntryType type, Character actor, ItemRecord record, int amount, GuildBankTab intoTab)
        {
            var entry = new GuildBankLogEntry {
                Type = type,
                Actor = actor,
                BankLog = this,
                DestinationTab = intoTab,
                ItemEntryId = (int)record.EntryId,
                ItemStackCount = (int)amount,
                TimeStamp = DateTime.Now
            };

            MoneyLogEntries.Push(entry);
            MoneyLogEntries = EnsureStackSize(MoneyLogEntries);
        }
Пример #2
0
        } // end method

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

            ItemLogEntries.Push(entry);
            ItemLogEntries = EnsureStackSize(ItemLogEntries);
        }
Пример #3
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);
			}
		}
Пример #4
0
		private static void OnEntryDeleted(GuildBankLogEntry obj)
		{
			obj.DeleteLater();
		}
Пример #5
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
			};

			entry.CreateLater();

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