public LootContainer(EntityDefault entityDefault, ILootItemRepository lootItemRepository, TimeSpan despawnTime) : base(entityDefault) { _looters = new Looters(this); _itemRepository = lootItemRepository; _despawnHelper = UnitDespawnHelper.Create(this, despawnTime); _despawnHelper.CanApplyDespawnEffect = OnCanApplyDespawnEffect; _lootListPacketBuilder = new LootListPacketBuilder(this, _itemRepository); _pinCode = DynamicProperties.GetProperty <int>(k.pinCode); }
protected override void OnEnterZone(IZone zone, ZoneEnterType enterType) { _despawnHelper = UnitDespawnHelper.Create(this, LifeTime); base.OnEnterZone(zone, enterType); }
public void SetDespawnTime(TimeSpan despawnTime) { _despawnHelper = UnitDespawnHelper.Create(this, despawnTime); _despawnHelper.CanApplyDespawnEffect = OnCanApplyDespawnEffect; }
public void SetDespawnTime(TimeSpan despawnTime) { _despawnHelper = UnitDespawnHelper.Create(this, despawnTime); }
public void SetDespawnTime(TimeSpan despawnTime) { _despawnHelper = UnitDespawnHelper.Create(this, despawnTime); _despawnHelper.DespawnStrategy = Kill; }