本文整理匯總了C++中GetVirtualMapForMapAndZone函數的典型用法代碼示例。如果您正苦於以下問題:C++ GetVirtualMapForMapAndZone函數的具體用法?C++ GetVirtualMapForMapAndZone怎麽用?C++ GetVirtualMapForMapAndZone使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了GetVirtualMapForMapAndZone函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: GetContentLevelsForMapAndZone
ContentLevels GetContentLevelsForMapAndZone (uint32 mapid, uint32 zoneId)
{
mapid = GetVirtualMapForMapAndZone(mapid, zoneId);
if (mapid < 2 || mapid == 648 || mapid == 654 || mapid == 638 || mapid == 655 || mapid == 656 || mapid == 661 || mapid == 659)
return CONTENT_1_60;
if (zoneId == 5034 || zoneId == 4922 || zoneId == 616 || zoneId == 5146 || zoneId == 5042)
return CONTENT_81_85;
MapEntry const* mapEntry = sMapStore.LookupEntry(mapid);
if (!mapEntry)
return CONTENT_1_60;
switch (mapEntry->Expansion())
{
case 1:
return CONTENT_61_70;
case 2:
return CONTENT_71_80;
case 3:
return CONTENT_81_85;
default:
return CONTENT_1_60;
}
}
示例2: GetContentLevelsForMapAndZone
ContentLevels GetContentLevelsForMapAndZone(uint32 mapid, uint32 zoneId)
{
mapid = GetVirtualMapForMapAndZone(mapid,zoneId);
if (mapid < 2)
return CONTENT_1_60;
MapEntry const* mapEntry = sMapStore.LookupEntry(mapid);
if (!mapEntry)
return CONTENT_1_60;
switch(mapEntry->Expansion())
{
default: return CONTENT_1_60;
case 1: return CONTENT_61_70;
}
}