本文整理汇总了C++中PhaseUpdateData类的典型用法代码示例。如果您正苦于以下问题:C++ PhaseUpdateData类的具体用法?C++ PhaseUpdateData怎么用?C++ PhaseUpdateData使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PhaseUpdateData类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UpdatePhasing
void InstanceScript::UpdatePhasing()
{
PhaseUpdateData phaseUdateData;
phaseUdateData.AddConditionType(CONDITION_INSTANCE_INFO);
Map::PlayerList const& players = instance->GetPlayers();
for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
if (Player* player = itr->GetSource())
player->GetPhaseMgr().NotifyConditionChanged(phaseUdateData);
}
示例2: NeedsPhaseUpdateWithData
bool PhaseMgr::NeedsPhaseUpdateWithData(PhaseUpdateData const updateData) const
{
PhaseDefinitionStore::const_iterator itr = _PhaseDefinitionStore->find(player->GetZoneId());
if (itr != _PhaseDefinitionStore->end())
{
for (PhaseDefinitionContainer::const_iterator phase = itr->second.begin(); phase != itr->second.end(); ++phase)
{
ConditionList conditionList = sConditionMgr->GetConditionsForPhaseDefinition(phase->zoneId, phase->entry);
for (ConditionList::const_iterator condition = conditionList.begin(); condition != conditionList.end(); ++condition)
if (updateData.IsConditionRelated(*condition))
return true;
}
}
return false;
}