public MineTask(IActor actor, IActorTaskContext context, IStaticObject staticObject, IMineDepositMethod method) : base(actor, context) { _staticObject = staticObject ?? throw new ArgumentNullException(nameof(staticObject)); _method = method ?? throw new ArgumentNullException(nameof(method)); }
public MineTask([NotNull] IActor actor, [NotNull] IStaticObject staticObject, [NotNull] IMineDepositMethod method, [NotNull] ISectorMap map) : base(actor) { _staticObject = staticObject ?? throw new ArgumentNullException(nameof(staticObject)); _method = method ?? throw new ArgumentNullException(nameof(method)); _map = map ?? throw new ArgumentNullException(nameof(map)); }
public void MineDeposit(IStaticObject deposit, IMineDepositMethod method) { if (deposit is null) { throw new ArgumentNullException(nameof(deposit)); } if (method is null) { throw new ArgumentNullException(nameof(method)); } var openResult = method.TryMine(deposit.GetModule <IPropDepositModule>()); DoMineDeposit(deposit, openResult); }