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);
        }
Exemple #2
0
 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;
 }
Exemple #4
0
 public void SetDespawnTime(TimeSpan despawnTime)
 {
     _despawnHelper = UnitDespawnHelper.Create(this, despawnTime);
 }
 public void SetDespawnTime(TimeSpan despawnTime)
 {
     _despawnHelper = UnitDespawnHelper.Create(this, despawnTime);
     _despawnHelper.DespawnStrategy = Kill;
 }