Class DeploymentService
- Namespace
- Uncreated.Warfare.FOBs.Deployment
- Assembly
- Uncreated.Warfare.dll
public class DeploymentService : ILayoutHostedService, IEventListener<PlayerDied>
- Inheritance
-
DeploymentService
- Implements
- Inherited Members
Constructors
DeploymentService(IPlayerService)
public DeploymentService(IPlayerService playerService)
Parameters
playerServiceIPlayerService
Fields
DefaultNearbyEnemyRange
public const float DefaultNearbyEnemyRange = 35
Field Value
Methods
CancelDeploymentsTo(IDeployable, bool)
Cancel all deployments to a given location.
public void CancelDeploymentsTo(IDeployable location, bool chat)
Parameters
locationIDeployablechatbool
TryStartDeployment(WarfarePlayer, IDeployable, in DeploySettings)
Begin deployment to a location.
public bool TryStartDeployment(WarfarePlayer player, IDeployable location, in DeploySettings settings)
Parameters
playerWarfarePlayerlocationIDeployablesettingsDeploySettings
Returns
- bool
Whether or not the initial check was successful. Future tick checks may still fail.