本文整理汇总了C++中IActionMapManager::EnableFilter方法的典型用法代码示例。如果您正苦于以下问题:C++ IActionMapManager::EnableFilter方法的具体用法?C++ IActionMapManager::EnableFilter怎么用?C++ IActionMapManager::EnableFilter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IActionMapManager
的用法示例。
在下文中一共展示了IActionMapManager::EnableFilter方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnStep
EContextEstablishTaskResult OnStep( SContextEstablishState& state )
{
IActionMapManager *pActionMapMan = CCryAction::GetCryAction()->GetIActionMapManager();
pActionMapMan->Enable(false);
pActionMapMan->EnableActionMap("player", true);
pActionMapMan->EnableFilter(0, false); // disable all actionfilters
return eCETR_Ok;
}
示例2: StopIngameMenu
void CUIMenuEvents::StopIngameMenu()
{
if (!gEnv->bMultiplayer && !gEnv->IsEditor())
{
g_pGame->GetIGameFramework()->PauseGame( false, true );
}
IActionMapManager* pAmMgr = g_pGame->GetIGameFramework()->GetIActionMapManager();
if (pAmMgr)
{
pAmMgr->EnableFilter("only_ui", false);
}
m_eventSender.SendEvent<eUIE_StopIngameMenu>();
}
示例3: OnEnterVehicleSeat
//------------------------------------------------------------------------
void CVehicleClient::OnEnterVehicleSeat(IVehicleSeat* pSeat)
{
m_bMovementFlagRight=m_bMovementFlagLeft=m_bMovementFlagForward=m_bMovementFlagBack=false;
m_fLeftRight = m_fForwardBackward = 0.f;
IVehicle* pVehicle = pSeat->GetVehicle();
assert(pVehicle);
IActorSystem* pActorSystem = gEnv->pGame->GetIGameFramework()->GetIActorSystem();
assert(pActorSystem);
IActor* pActor = pActorSystem->GetActor(pSeat->GetPassenger());
bool isThirdPerson = pActor->IsThirdPerson() || m_tp;
TVehicleViewId viewId = InvalidVehicleViewId;
TVehicleViewId firstViewId = InvalidVehicleViewId;
while (viewId = pSeat->GetNextView(viewId))
{
if (viewId == firstViewId)
break;
if (firstViewId == InvalidVehicleViewId)
firstViewId = viewId;
if (IVehicleView* pView = pSeat->GetView(viewId))
{
if (pView->IsThirdPerson() == isThirdPerson)
break;
}
}
if (viewId != InvalidVehicleViewId)
pSeat->SetView(viewId);
IActionMapManager* pMapManager = gEnv->pGame->GetIGameFramework()->GetIActionMapManager();
assert(pMapManager);
pMapManager->EnableActionMap("landvehicle", false);
pMapManager->EnableActionMap("seavehicle", false);
pMapManager->EnableActionMap("helicopter", false);
pMapManager->EnableActionMap("vtol", false);
pMapManager->EnableFilter ( "vehicle_no_seat_change_and_exit", true );
}