ConditionNode.cc 275 B

123456789101112131415161718
  1. #include <boost/foreach.hpp>
  2. #include "Base/Marcos.h"
  3. #include "LogicTree/ConditionNode.h"
  4. namespace Egametang {
  5. bool BuffType::Run(LogicContex* contex)
  6. {
  7. Buff* buff = contex->buff;
  8. if (buff->type == type)
  9. {
  10. return true;
  11. }
  12. return false;
  13. }
  14. } // namespace Egametang