Просмотр исходного кода

refactor(xtt.Send): 把所有的 #send 全都改成 xtt.Send

dzp 2 лет назад
Родитель
Сommit
3d9ef4e965

+ 2 - 2
mud/pkuxkx/plugins/basic/char/hp.tin

@@ -451,7 +451,7 @@ hp -neili 格式:
 
     #class char.GetHP close;
 
-    #send {hp %0};
+    xtt.Send {hp %0};
 };
 
 #alias {char.GetHP2} {
@@ -465,6 +465,6 @@ hp -neili 格式:
         char.GetHP %0;
     };
     #else {
-        #send hp %0;
+        xtt.Send hp %0;
     };
 };

+ 2 - 2
mud/pkuxkx/plugins/basic/char/jifa.tin

@@ -38,7 +38,7 @@ event.Define {char/jifa}    {无参}  {$MODULE} {已经获取到 jifa/enable 命
 #alias {char.Jifa} {
     #local args {%0};
     #if { "$args" != "" } {
-        #send {jifa $args};
+        xtt.Send {jifa $args};
         #return;
     };
 
@@ -55,7 +55,7 @@ event.Define {char/jifa}    {无参}  {$MODULE} {已经获取到 jifa/enable 命
 
     #class char.Jifa close;
 
-    #send jifa;
+    xtt.Send jifa;
 };
 
 #alias {char.jifa.parse.output} {

+ 1 - 1
mud/pkuxkx/plugins/basic/char/skills.tin

@@ -254,7 +254,7 @@ event.Define {char/skbrief} {无参}  {$MODULE} {已经获取到 skbrief 命令
         #return;
     };
 
-    #send {#response R:skbrief-begin;skbrief $id;response R:skbrief-end#};
+    xtt.Send {#response R:skbrief-begin;skbrief $id;response R:skbrief-end#};
 };
 
 ///=== {

+ 1 - 1
mud/pkuxkx/plugins/basic/cmds/finger.tin

@@ -25,5 +25,5 @@
 
     #class finger-parse close;
 
-    #send finger;
+    xtt.Send finger;
 };

+ 2 - 2
mud/pkuxkx/plugins/basic/cmds/jobquery.tin

@@ -55,7 +55,7 @@ jobquery 本来就有两个别名:
 
     #nop 如果命令不是预期的格式,则直接透传给服务器,不予处理。;
     #if { "$args" != "{|-m|-x|-z|-t|-zn|-cur|-avail|[0-9]+}" } {
-        #send {jobquery $args};
+        xtt.Send {jobquery $args};
         #return;
     };
 
@@ -103,7 +103,7 @@ jobquery 本来就有两个别名:
 
     #class job.Query close;
 
-    #send {jobquery $args};
+    xtt.Send {jobquery $args};
 };
 
 #alias {jobquery.parse.output} {

+ 3 - 3
mud/pkuxkx/plugins/basic/cmds/who.tin

@@ -20,7 +20,7 @@
 
     #class who-parse close;
 
-    #send {who -l};
+    xtt.Send {who -l};
 };
 
 #alias {who-pro-l} {
@@ -45,7 +45,7 @@
 
     #class who-parse close;
 
-    #send {who -pro -l};
+    xtt.Send {who -pro -l};
 };
 
 #alias {who-all} {
@@ -63,7 +63,7 @@
 
     #class who-parse close;
 
-    #send {who};
+    xtt.Send {who};
 };
 
 #alias {who-handle-end} {

+ 1 - 1
mud/pkuxkx/plugins/lib/sync.tin

@@ -64,7 +64,7 @@ PaoTin++ © 2020~2023 的所有版权均由担子炮(dzp <danzipao@gmail.com>) 
 
     sync.handle {$uuid} {$callback};
 
-    #send response R:sync-$uuid;
+    xtt.Send response R:sync-$uuid;
 };
 
 ///=== {

+ 5 - 5
mud/pkuxkx/plugins/quest/tang.tin

@@ -86,7 +86,7 @@ load-lib speedo;
         #foreach {困难;挑战;普通;简单} {level} {
             #if { "${tang-job-list[$level]}" != "" } {
                 #var {tang-job-log[任务难度]} {$level};
-                #send record ${tang-job-list[$level][1][ID]};
+                xtt.Send record ${tang-job-list[$level][1][ID]};
                 #list {tang-job-list[$level]} delete {1};
                 #return;
             };
@@ -123,7 +123,7 @@ load-lib speedo;
         ask jingzhao shaoyin about 任务信息;
     };
     #else {
-        #send record $id;
+        xtt.Send record $id;
     };
 };
 
@@ -157,7 +157,7 @@ load-lib speedo;
         #if { ${tang-inquiry-exit-index} != 0 } {
             #local back {@dir.Reverse{${tang-inquiry-exits[${tang-inquiry-exit-index}]}}};
             #echo 回去吧。;
-            #send $back;
+            xtt.Send $back;
         };
         #math tang-inquiry-exit-index {${tang-inquiry-exit-index} + 1};
         #local exit {${tang-inquiry-exits[${tang-inquiry-exit-index}]}};
@@ -168,7 +168,7 @@ load-lib speedo;
         };
         #else {
             #echo 下一个出口;
-            #send $exit;
+            xtt.Send $exit;
             #delay 1 {tang.look 1; tang.ask 1};
         };
     };
@@ -234,7 +234,7 @@ load-lib speedo;
     #class tang.look close;
 
     look luren $id;
-    #send response R:look-end;
+    xtt.Send response R:look-end;
 };
 
 #alias {tang.ask} {

+ 4 - 4
mud/pkuxkx/plugins/shortcut.tin

@@ -31,7 +31,7 @@
     #alias {bwcx.return}    {#class bwcx kill};
     #class bwcx close;
 
-    #send bwcx;
+    xtt.Send bwcx;
 };
 
 #alias chat-ren-song {
@@ -123,9 +123,9 @@
 
 #alias tichun {
     #class tichun open;
-    #action {^你目前的修为还可以再转换%%1点内力变为真气。$E} {#delay 0 {#send tichun %%1}} {9.500};
+    #action {^你目前的修为还可以再转换%%1点内力变为真气。$E} {#delay 0 {xtt.Send tichun %%1}} {9.500};
     #class tichun close;
-    #delay 1 {#send tichun $char[HP][当前内力]};
+    #delay 1 {xtt.Send tichun $char[HP][当前内力]};
 };
 
 #gag {向红豆打听有关『%*』的消息。$E};
@@ -160,7 +160,7 @@
 #action {^你从%*搜出一把玉石子。$E}     {put shi zi in lupi dai} {9.500};
 
 #action {^没有经过通传,任何人等不得擅闯都统治府。$E} {ask shiwei about 通传} {9.999};
-#action {^你因为种种原因停了下来,可以用walk继续进行。$E} {#delay 1 #send walk} {9.500};
+#action {^你因为种种原因停了下来,可以用walk继续进行。$E} {#delay 1 xtt.Send walk} {9.500};
 #action {^艄公说“到啦,上岸吧”,随即把一块踏脚板搭上堤岸。$E} {out} {9.500};
 #action {^大车停稳了下来,你可以下车(xia)了。$} {xia} {9.500};
 

+ 1 - 1
plugins/lib/ui/mouse.tin

@@ -73,7 +73,7 @@ load-lib ui/keyboard;
 };
 
 #event {SHORT-CLICKED LINK SEND MOUSE BUTTON ONE} {
-    #send {%4};
+    xtt.Send {%4};
 };
 
 #event {SHORT-CLICKED LINK EXEC MOUSE BUTTON ONE} {

+ 2 - 2
plugins/lib/xtintin/cmds.tin

@@ -367,7 +367,7 @@ option.Define {DisableOutput} {Bool} {是否禁止向服务器发送命令} {fal
 // };
 #alias {xtt.SendAtOnce} {
     #local cmds {%1};
-    #send {#$cmds#};
+    xtt.Send {#$cmds#};
 };
 
 ///=== {
@@ -380,7 +380,7 @@ option.Define {DisableOutput} {Bool} {是否禁止向服务器发送命令} {fal
     #delay 0 {
         #echo {};
         #buffer end;
-        #send {%1};
+        xtt.Send {%1};
     };
 };
 

+ 2 - 2
plugins/silent.tin

@@ -33,7 +33,7 @@
     #local ok {@silent.Check{$cmd}};
     #if { $ok } {
         #var silent-LastCmd {};
-        #send {$cmd};
+        xtt.Send {$cmd};
         #return;
     };
 
@@ -45,7 +45,7 @@
     };
     #else {
         #var silent-LastCmd {};
-        #send {%0};
+        xtt.Send {%0};
     };
 } {9.999};