当前位置: 首页>>代码示例>>C++>>正文


C++ SmartScript类代码示例

本文整理汇总了C++中SmartScript的典型用法代码示例。如果您正苦于以下问题:C++ SmartScript类的具体用法?C++ SmartScript怎么用?C++ SmartScript使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了SmartScript类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: OnTrigger

 bool OnTrigger(Player* player, AreaTriggerEntry const* trigger)
 {
     sLog->outDebug(LOG_FILTER_DATABASE_AI, "AreaTrigger %u is using SmartTrigger script", trigger->id);
     SmartScript script;
     script.OnInitialize(NULL, trigger);
     script.ProcessEventsFor(SMART_EVENT_AREATRIGGER_ONTRIGGER, player, trigger->id);
     return true;
 }
开发者ID:AdrElecTro,项目名称:TrinityCore,代码行数:8,代码来源:SmartAI.cpp

示例2: OnTrigger

        bool OnTrigger(Player* player, AreaTriggerEntry const* trigger) override
        {
            if (!player->IsAlive())
                return false;

            TC_LOG_DEBUG("scripts.ai", "AreaTrigger %u is using SmartTrigger script", trigger->id);
            SmartScript script;
            script.OnInitialize(nullptr, trigger);
            script.ProcessEventsFor(SMART_EVENT_AREATRIGGER_ONTRIGGER, player, trigger->id);
            return true;
        }
开发者ID:lasyan3,项目名称:TrinityCore,代码行数:11,代码来源:SmartAI.cpp

示例3: OnTrigger

        bool OnTrigger(Player* player, AreaTriggerEntry const* trigger)
        {
            if (!player->IsAlive())
                return false;

            TC_LOG_DEBUG(LOG_FILTER_DATABASE_AI, "AreaTrigger %u is using SmartTrigger script", trigger->id);
            SmartScript script;
            script.OnInitialize(NULL, trigger);
            script.ProcessEventsFor(SMART_EVENT_AREATRIGGER_ONTRIGGER, player, trigger->id);
            return true;
        }
开发者ID:Carbinfibre,项目名称:TrinityCore-3.3.5,代码行数:11,代码来源:SmartAI.cpp

示例4: OnTrigger

        bool OnTrigger(Player* player, AreaTrigger const* trigger)
        {
            if (!player->IsAlive())
                return false;

#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
            sLog->outDebug(LOG_FILTER_DATABASE_AI, "AreaTrigger %u is using SmartTrigger script", trigger->entry);
#endif
            SmartScript script;
            script.OnInitialize(NULL, trigger);
            script.ProcessEventsFor(SMART_EVENT_AREATRIGGER_ONTRIGGER, player, trigger->entry);
            return true;
        }
开发者ID:Matt-One,项目名称:azerothcore-wotlk,代码行数:13,代码来源:SmartAI.cpp

示例5: OnSceneComplete

 void OnSceneComplete(Player* player, uint32 /*sceneInstanceID*/, SceneTemplate const* sceneTemplate) override
 {
     SmartScript smartScript;
     smartScript.OnInitialize(nullptr, nullptr, sceneTemplate);
     smartScript.ProcessEventsFor(SMART_EVENT_SCENE_COMPLETE, player);
 }
开发者ID:Carbenium,项目名称:TrinityCore,代码行数:6,代码来源:SmartAI.cpp

示例6: OnSceneTriggerEvent

 void OnSceneTriggerEvent(Player* player, uint32 /*sceneInstanceID*/, SceneTemplate const* sceneTemplate, std::string const& triggerName) override
 {
     SmartScript smartScript;
     smartScript.OnInitialize(nullptr, nullptr, sceneTemplate);
     smartScript.ProcessEventsFor(SMART_EVENT_SCENE_TRIGGER, player, 0, 0, false, nullptr, nullptr, triggerName);
 }
开发者ID:Carbenium,项目名称:TrinityCore,代码行数:6,代码来源:SmartAI.cpp


注:本文中的SmartScript类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。