|
@@ -18,15 +18,20 @@ class EEventType {
|
|
*/
|
|
*/
|
|
const AddItem = "AddItem";
|
|
const AddItem = "AddItem";
|
|
|
|
|
|
-// /**
|
|
|
|
-// * 给予道具
|
|
|
|
-// */
|
|
|
|
-// const AddWeapon = "AddWeapon";
|
|
|
|
-//
|
|
|
|
-// /**
|
|
|
|
-// * 给予道具
|
|
|
|
-// */
|
|
|
|
-// const AddYanling = "AddYanling";
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 移除道具
|
|
|
|
+ */
|
|
|
|
+ const RemoveItem = "RemoveItem";
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 给予任务
|
|
|
|
+ */
|
|
|
|
+ const AddTaskItem = "AddTaskItem";
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 移除任务
|
|
|
|
+ */
|
|
|
|
+ const RemoveTaskItem = "RemoveTaskItem";
|
|
|
|
|
|
/**
|
|
/**
|
|
* 完成任务步骤
|
|
* 完成任务步骤
|
|
@@ -43,6 +48,11 @@ class EEventType {
|
|
*/
|
|
*/
|
|
const StartPlot = "StartPlot";
|
|
const StartPlot = "StartPlot";
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 开启npc对话
|
|
|
|
+ */
|
|
|
|
+ const NpcDialog = "NpcDialog";
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -66,23 +76,33 @@ class NormalEventProc {
|
|
Resp::AddEvent(EEventType::AddItem, $arg1, $arg2);
|
|
Resp::AddEvent(EEventType::AddItem, $arg1, $arg2);
|
|
}
|
|
}
|
|
|
|
|
|
-// /**
|
|
|
|
-// * 包裹--获得新的武器
|
|
|
|
-// * @param type $arg1
|
|
|
|
-// * @param type $arg2
|
|
|
|
-// */
|
|
|
|
-// public static function OnBag_new_Weapon($arg1, $arg2) {
|
|
|
|
-// Resp::AddEvent(EEventType::AddWeapon, $arg1, $arg2);
|
|
|
|
-// }
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 包裹--移除道具
|
|
|
|
+ * @param type $arg1
|
|
|
|
+ * @param type $arg2
|
|
|
|
+ */
|
|
|
|
+ public static function OnBag_Remove_Item($arg1, $arg2) {
|
|
|
|
+ Resp::AddEvent(EEventType::RemoveItem, $arg1, $arg2);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 任务卡包裹--获得新的任务卡
|
|
|
|
+ * @param type $arg1
|
|
|
|
+ * @param type $arg2
|
|
|
|
+ */
|
|
|
|
+ public static function OnTaskBag_new_Card($arg1, $arg2) {
|
|
|
|
+ Resp::AddEvent(EEventType::AddTaskItem, $arg1, $arg2);
|
|
|
|
+ }
|
|
|
|
+
|
|
//
|
|
//
|
|
-// /**
|
|
|
|
-// * 包裹--获得新的言灵
|
|
|
|
-// * @param type $arg1
|
|
|
|
-// * @param type $arg2
|
|
|
|
-// */
|
|
|
|
-// public static function OnBag_new_Yanling($arg1, $arg2) {
|
|
|
|
-// Resp::AddEvent(EEventType::AddYanling, $arg1, $arg2);
|
|
|
|
-// }
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 任务卡包裹--移除任务卡
|
|
|
|
+ * @param type $arg1
|
|
|
|
+ * @param type $arg2
|
|
|
|
+ */
|
|
|
|
+ public static function OnTaskBag_remove_Card($arg1, $arg2) {
|
|
|
|
+ Resp::AddEvent(EEventType::AddYanling, $arg1, $arg2);
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* 任务卡-任务步骤完成
|
|
* 任务卡-任务步骤完成
|
|
@@ -111,4 +131,13 @@ class NormalEventProc {
|
|
Resp::AddEvent(EEventType::StartPlot, $arg1, $arg2);
|
|
Resp::AddEvent(EEventType::StartPlot, $arg1, $arg2);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 剧情-开启一段NPC对话
|
|
|
|
+ * @param type $arg1
|
|
|
|
+ * @param type $arg2
|
|
|
|
+ */
|
|
|
|
+ public static function OnNpcDialog_startNew($arg1, $arg2) {
|
|
|
|
+ Resp::AddEvent(EEventType::NpcDialog, $arg1, $arg2);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|