本文整理汇总了C#中KSPActionParam类的典型用法代码示例。如果您正苦于以下问题:C# KSPActionParam类的具体用法?C# KSPActionParam怎么用?C# KSPActionParam使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
KSPActionParam类属于命名空间,在下文中一共展示了KSPActionParam类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ToggleMagnetometerAction
public void ToggleMagnetometerAction(KSPActionParam param)
{
if (IsEnabled)
DeactivateMagnetometer();
else
ActivateMagnetometer();
}
示例2: DeployModuleAction
public void DeployModuleAction(KSPActionParam param)
{
if (!isDeployed)
{
DeployModule();
}
}
示例3: AGToggleDeployed
public void AGToggleDeployed(KSPActionParam param)
{
if (repulsorMode)
toWheel(param);
else
toRepulsor(param);
}
示例4: ActionGroupDetach
public void ActionGroupDetach(KSPActionParam param)
{
if (!this.part.packed)
{
DetachSuction();
}
}
示例5: ActionGroupMagnetOff
public void ActionGroupMagnetOff(KSPActionParam param)
{
if (!this.part.packed)
{
MagnetActive = false;
}
}
示例6: BeginExtractionAction
public void BeginExtractionAction(KSPActionParam param)
{
if (isDeployed && !_isDrilling)
{
ActivateExtractors();
}
}
示例7: AbortLaunchAction
public void AbortLaunchAction(KSPActionParam param)
{
if (LaunchUI._launchSequenceIsActive == true)
{
AbortLaunchSequence();
}
}
示例8: AGDisable
public void AGDisable(KSPActionParam param)
{
if(jammerEnabled)
{
DisableJammer();
}
}
示例9: RetractModuleAction
public void RetractModuleAction(KSPActionParam param)
{
if (isDeployed)
{
RetractModule();
}
}
示例10: ToggleScoopAction
public void ToggleScoopAction(KSPActionParam param) {
if (scoopIsEnabled) {
DisableScoop();
} else {
ActivateScoop();
}
}
示例11: DeployDrillAction
public void DeployDrillAction(KSPActionParam param)
{
if (!isDeployed)
{
DeployDrill();
}
}
示例12: Execute
public void Execute(KSPActionParam data)
{
if (data.type == KSPActionType.Activate)
{
Execute();
}
}
示例13: deployAction
public void deployAction(KSPActionParam p)
{
if (p.type == KSPActionType.Activate)
{
deployEvent();
}
}
示例14: ToggleMagnetAction
public void ToggleMagnetAction(KSPActionParam param)
{
if (param.type == KSPActionType.Activate)
ActivateMagnet();
else if (param.type == KSPActionType.Deactivate)
DeactivateMagnet();
}
示例15: ToggleAction
public void ToggleAction (KSPActionParam param)
{
if(isActive)
Shutdown ();
else
Activate ();
}