这篇教程C++ GetVirtualMapForMapAndZone函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中GetVirtualMapForMapAndZone函数的典型用法代码示例。如果您正苦于以下问题:C++ GetVirtualMapForMapAndZone函数的具体用法?C++ GetVirtualMapForMapAndZone怎么用?C++ GetVirtualMapForMapAndZone使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了GetVirtualMapForMapAndZone函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: GetContentLevelsForMapAndZoneContentLevels 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; }}
开发者ID:BoThay,项目名称:ArkCORE,代码行数:25,
示例2: GetContentLevelsForMapAndZoneContentLevels 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; }}
开发者ID:Kerpele,项目名称:UnNamedWoW,代码行数:16,
注:本文中的GetVirtualMapForMapAndZone函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ GetVirtualPixels函数代码示例 C++ GetViewByName函数代码示例 |