本文整理匯總了C++中ClearUpdateMask函數的典型用法代碼示例。如果您正苦於以下問題:C++ ClearUpdateMask函數的具體用法?C++ ClearUpdateMask怎麽用?C++ ClearUpdateMask使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了ClearUpdateMask函數的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: BuildUpdateDataForPlayer
void Item::BuildUpdateData(UpdateDataMapType& update_players)
{
if (Player* pl = GetOwner())
BuildUpdateDataForPlayer(pl, update_players);
ClearUpdateMask(false);
}
示例2: BuildFieldsUpdate
void Item::BuildUpdate(UpdateDataMapType& data_map)
{
if (Player* pl = GetOwner())
BuildFieldsUpdate(pl, data_map);
ClearUpdateMask(false);
}
示例3: GetMap
void Transport::BuildUpdate(UpdateDataMapType& data_map)
{
Map::PlayerList const& players = GetMap()->GetPlayers();
if (players.isEmpty())
return;
for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
BuildFieldsUpdate(itr->GetSource(), data_map);
ClearUpdateMask(true);
}
示例4: BuildFieldsUpdate
void Item::BuildUpdate(UpdateDataMapType& data_map, UpdatePlayerSet&)
{
if (Player* owner = GetOwner())
BuildFieldsUpdate(owner, data_map);
ClearUpdateMask(false);
}