Interface IDeployable
- Namespace
- Uncreated.Warfare.FOBs.Deployment
- Assembly
- Uncreated.Warfare.dll
public interface IDeployable : ITranslationArgument
- Inherited Members
- Extension Methods
Properties
IsSafeZone
If the zone is a safezone like the lobby or main base. This is used to caculate 'time deployed' stat.
bool IsSafeZone { get; }
Property Value
SpawnPosition
The position the player will spawn.
Vector3 SpawnPosition { get; }
Property Value
- Vector3
Yaw
The angle the player will spawn along the Y-axis.
float Yaw { get; }
Property Value
Methods
CheckDeployableFrom(WarfarePlayer, ChatService, DeploymentTranslations, in DeploySettings, IDeployable)
Initial check to see if a player can deploy from the location.
bool CheckDeployableFrom(WarfarePlayer player, ChatService chatService, DeploymentTranslations translations, in DeploySettings settings, IDeployable deployingTo)
Parameters
playerWarfarePlayerchatServiceChatServicetranslationsDeploymentTranslationssettingsDeploySettingsdeployingToIDeployable
Returns
CheckDeployableFromTick(WarfarePlayer, DeploymentTranslations, in DeploySettings, IDeployable)
Periodic checks over time to see if a player can deploy from this location. This also runs just before the teleport.
bool CheckDeployableFromTick(WarfarePlayer player, DeploymentTranslations translations, in DeploySettings settings, IDeployable deployingTo)
Parameters
playerWarfarePlayertranslationsDeploymentTranslationssettingsDeploySettingsdeployingToIDeployable
Returns
CheckDeployableTo(WarfarePlayer, ChatService, DeploymentTranslations, in DeploySettings)
Initial check to see if a player can deploy to the location.
bool CheckDeployableTo(WarfarePlayer player, ChatService chatService, DeploymentTranslations translations, in DeploySettings settings)
Parameters
playerWarfarePlayerchatServiceChatServicetranslationsDeploymentTranslationssettingsDeploySettings
Returns
CheckDeployableToTick(WarfarePlayer, ChatService, DeploymentTranslations, in DeploySettings)
Periodic checks over time to see if a player can deploy to the location. This also runs just before the teleport.
bool CheckDeployableToTick(WarfarePlayer player, ChatService chatService, DeploymentTranslations translations, in DeploySettings settings)
Parameters
playerWarfarePlayerchatServiceChatServicetranslationsDeploymentTranslationssettingsDeploySettings
Returns
GetDelay(WarfarePlayer)
Get the deployment delay in seconds.
TimeSpan GetDelay(WarfarePlayer player)
Parameters
playerWarfarePlayer
Returns
OnDeployFrom(WarfarePlayer, in DeploySettings)
Invoked after deployment from this location.
void OnDeployFrom(WarfarePlayer player, in DeploySettings settings)
Parameters
playerWarfarePlayersettingsDeploySettings
OnDeployTo(WarfarePlayer, in DeploySettings)
Invoked after deployment to this location.
void OnDeployTo(WarfarePlayer player, in DeploySettings settings)
Parameters
playerWarfarePlayersettingsDeploySettings