NormalEventProc.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <?php
  2. namespace loyalsoft;
  3. /**
  4. * 系统事件处理模块
  5. * @author gwang
  6. */
  7. class NormalEventProc {
  8. public static function OnHelloWorld($arg1, $arg2) {
  9. Resp::AddEvent(Enum_EventType::HelloWorld, $arg1, $arg2);
  10. }
  11. /**
  12. * 包裹--获得新的道具
  13. * @param type $itemid
  14. * @param type $num
  15. * @param type $cid
  16. */
  17. public static function OnBag_new_Item($itemid, $num, $cid) {
  18. Resp::AddEvent(Enum_EventType::AddItem, "$itemid,$num", $cid);
  19. }
  20. /**
  21. * 包裹--移除道具
  22. * @param type $arg1
  23. * @param type $arg2
  24. */
  25. public static function OnBag_Remove_Item($arg1, $arg2) {
  26. Resp::AddEvent(Enum_EventType::RemoveItem, $arg1, $arg2);
  27. }
  28. /**
  29. * 任务卡包裹--获得新的任务卡
  30. * @param type $arg1
  31. * @param type $arg2
  32. */
  33. public static function OnTaskBag_new_Card($arg1, $arg2) {
  34. Resp::AddEvent(Enum_EventType::AddTaskItem, $arg1, $arg2);
  35. }
  36. //
  37. /**
  38. * 任务卡包裹--移除任务卡
  39. * @param type $arg1
  40. * @param type $arg2
  41. */
  42. public static function OnTaskBag_remove_Card($arg1, $arg2) {
  43. Resp::AddEvent(Enum_EventType::RemoveTaskItem, $arg1, $arg2);
  44. }
  45. /**
  46. * 任务卡-任务步骤进度更新
  47. * @param type $arg1
  48. * @param type $arg2
  49. */
  50. public static function OnTaskCardStep_Process($arg1, $arg2) {
  51. Resp::AddEvent(Enum_EventType::MissionStepProcess, $arg1, $arg2);
  52. }
  53. /**
  54. * 任务卡-任务步骤完成
  55. * @param type $arg1
  56. * @param type $arg2
  57. */
  58. public static function OnTaskCardStep_Complete($arg1, $arg2) {
  59. Resp::AddEvent(Enum_EventType::MissionStepComplete, $arg1, $arg2);
  60. }
  61. /**
  62. * 任务卡-完成
  63. * @param type $arg1
  64. * @param type $arg2
  65. */
  66. public static function OnTaskCard_Finish($arg1, $arg2) {
  67. Resp::AddEvent(Enum_EventType::TaskCardFinished, $arg1, $arg2);
  68. }
  69. /**
  70. * 任务卡-激活
  71. * @param type $arg1
  72. * @param type $arg2
  73. */
  74. public static function OnTaskCard_Actived($arg1, $arg2) {
  75. Resp::AddEvent(Enum_EventType::TaskCardActived, $arg1, $arg2);
  76. }
  77. /**
  78. * 任务卡-领取奖励
  79. * @param type $arg1
  80. * @param type $arg2
  81. */
  82. public static function OnTaskCard_Reward($arg1, $arg2) {
  83. Resp::AddEvent(Enum_EventType::TaskCardReward, $arg1, $arg2);
  84. }
  85. /**
  86. * 剧情-开启一段新对话
  87. * @param type $arg1
  88. * @param type $arg2
  89. */
  90. public static function OnPlot_startNew($arg1, $arg2) {
  91. Resp::AddEvent(Enum_EventType::StartPlot, $arg1, $arg2);
  92. }
  93. /**
  94. * 剧情-开启一段NPC对话
  95. * @param type $arg1
  96. * @param type $arg2
  97. */
  98. public static function OnNpcDialog_startNew($arg1, $arg2) {
  99. Resp::AddEvent(Enum_EventType::NpcDialog, $arg1, $arg2);
  100. }
  101. /**
  102. * 解锁 - 功能建筑
  103. * @param type $arg1 建筑id
  104. * @param type $arg2
  105. */
  106. public static function OnUnlockBuild($arg1, $arg2 = null) {
  107. Resp::AddEvent(Enum_EventType::UnlockBuild, $arg1, $arg2);
  108. }
  109. /**
  110. * 解锁 - 地图
  111. * @param type $arg1 关卡id
  112. * @param type $arg2
  113. */
  114. public static function OnUnlockMap($arg1, $arg2) {
  115. Resp::AddEvent(Enum_EventType::UnlockMap, $arg1, $arg2);
  116. }
  117. /**
  118. * 升级-指挥官
  119. * @param type $arg1 旧等级
  120. * @param type $arg2 新等级
  121. */
  122. public static function OnUserLvlUp($arg1, $arg2) {
  123. Resp::AddEvent(Enum_EventType::UserLvlUP, $arg1, $arg2);
  124. }
  125. /**
  126. * 升级-唤灵师
  127. * @param type $arg1 唤灵师uid
  128. * @param type $arg2 最新等级
  129. */
  130. public static function OnHeroLvlUp($arg1, $arg2) {
  131. Resp::AddEvent(Enum_EventType::HeroLvlUp, $arg1, $arg2);
  132. }
  133. /**
  134. * 突破-唤灵师
  135. * @param type $arg1
  136. * @param type $arg2
  137. */
  138. public static function OnHeroTuPo($arg1, $arg2) {
  139. Resp::AddEvent(Enum_EventType::HeroTuPo, $arg1, $arg2);
  140. }
  141. /**
  142. * 升级-唤灵师
  143. * @param type $arg1 唤灵师uid
  144. * @param type $arg2 最新等级
  145. */
  146. public static function OnWeaponLvlUp($arg1, $arg2) {
  147. Resp::AddEvent(Enum_EventType::WeaponLvUp, $arg1, $arg2);
  148. }
  149. /**
  150. * 突破-唤灵师
  151. * @param type $arg1
  152. * @param type $arg2
  153. */
  154. public static function OnWeaponLvTuPo($arg1, $arg2) {
  155. Resp::AddEvent(Enum_EventType::WeaponTuPo, $arg1, $arg2);
  156. }
  157. }