游戏王残局简化版

Annotation For single_doc/三个绑定函数.html
Login

Annotation For single_doc/三个绑定函数.html

Origin for each line in single_doc/三个绑定函数.html from check-in 8f3a6c70d8:

e1b217bace 2023-09-09    1: <!DOCTYPE html>
e1b217bace 2023-09-09    2: <html xmlns="http://www.w3.org/1999/xhtml" lang xml:lang>
e1b217bace 2023-09-09    3: <head>
e1b217bace 2023-09-09    4:   <meta charset="utf-8" />
e1b217bace 2023-09-09    5:   <meta name="generator" content="pandoc" />
e1b217bace 2023-09-09    6:   <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
e1b217bace 2023-09-09    7:   <title>三个绑定函数</title>
e1b217bace 2023-09-09    8:   <style>
e1b217bace 2023-09-09    9: code{white-space: pre-wrap;}
e1b217bace 2023-09-09   10: span.smallcaps{font-variant: small-caps;}
e1b217bace 2023-09-09   11: div.columns{display: flex; gap: min(4vw, 1.5em);}
e1b217bace 2023-09-09   12: div.column{flex: auto; overflow-x: auto;}
e1b217bace 2023-09-09   13: div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
e1b217bace 2023-09-09   14: 
e1b217bace 2023-09-09   15: ul.task-list[class]{list-style: none;}
e1b217bace 2023-09-09   16: ul.task-list li input[type="checkbox"] {
e1b217bace 2023-09-09   17: font-size: inherit;
e1b217bace 2023-09-09   18: width: 0.8em;
e1b217bace 2023-09-09   19: margin: 0 0.8em 0.2em -1.6em;
e1b217bace 2023-09-09   20: vertical-align: middle;
e1b217bace 2023-09-09   21: }
e1b217bace 2023-09-09   22: .display.math{display: block; text-align: center; margin: 0.5rem auto;}
e1b217bace 2023-09-09   23: </style>
8f3a6c70d8 2023-09-18   24:   <style type="text/css">@media screen and (min-aspect-ratio:1/1) {html {background-color: f8f8f8;background-image:linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%), linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%);background-size: 8px 8px;background-position: 0 0, 16px 8px;}body {border: solid #a0a0a0 1px ;border-radius: 20px ;padding: 26px ;margin: 16px ;color: #101010 ;background: linear-gradient(to right, #efefefff, #efefeffc);padding: 2em 18%;line-height: 2.1em;box-shadow: 0px 0px 1px rgba(160, 160, 160, 1), 0px 0px 1px rgba(160, 160, 160, 1);}}h1,h2,h3,h4,h5,h6 {font-size: 1.5em;color: #3F5770;border-bottom: 1px solid #dddddd;margin: 1.2em 0em;}h2::before {content: "  ";}h3::before {content: "    ";}a {list-style: none;border-right: 0.3em solid #5183C466;border-left: 0.3em solid #5183C466;padding: 0.2em 0.4em;margin-bottom: 0.2em;margin-top: 0.3em;background-color: white;text-decoration-color: blue;border-radius: 0.2em;}a:visited {color: blue;text-decoration-color: white;}a:active {color: red;}nav ul li {margin: 1.2em 0em;}p::before {content: "  ";}p {margin: 1.2em 0;}.title {background-color: white;font-size: 2em;text-align: center;}b {background-color: white;list-style: none;border-right: 0.3em solid #5183C466;border-left: 0.3em solid #5183C466;padding: 0.2em 0.4em;margin-bottom: 0.2em;margin-top: 0.3em;border-radius: 0.2em;}details {border-bottom: 1px solid #dddddd;}details > summary {list-style: none;border-right: 0.3em solid #5183C466;border-left: 0.3em solid #5183C466;padding: 0.2em 0.4em;margin-bottom: 0.2em;margin-top: 0.3em;outline: none;border-radius: 0.2em;}pre {background: #f6f6f6;border-left: 0.5em solid #ccc;padding: 0.4em;border-radius: 0.2em;overflow-wrap:break-word;}pre:active {color: red;}code {font-family: "Verdana";}button {background: #ffffff;color: #20894d;}button:active {color: red;}</style>
e1b217bace 2023-09-09   25:   <!--[if lt IE 9]>
e1b217bace 2023-09-09   26:     <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
e1b217bace 2023-09-09   27:   <![endif]-->
e1b217bace 2023-09-09   28: </head>
e1b217bace 2023-09-09   29: <body>
e1b217bace 2023-09-09   30: <header id="title-block-header">
e1b217bace 2023-09-09   31: <h1 class="title">三个绑定函数</h1>
e1b217bace 2023-09-09   32: </header>
e1b217bace 2023-09-09   33: <nav id="TOC" role="doc-toc">
e1b217bace 2023-09-09   34: <ul>
e1b217bace 2023-09-09   35: <li><a href="#presummon" id="toc-presummon"><span class="toc-section-number">1</span> PreSummon</a></li>
580b09114c 2023-09-09   36: <li><a href="#preequip" id="toc-preequip"><span class="toc-section-number">2</span> PreEquip</a></li>
580b09114c 2023-09-09   37: <li><a href="#presettarget" id="toc-presettarget"><span class="toc-section-number">3</span> PreSetTarget</a></li>
e1b217bace 2023-09-09   38: </ul>
e1b217bace 2023-09-09   39: </nav>
e1b217bace 2023-09-09   40: <h1 data-number="1" id="presummon"><span class="header-section-number">1</span> PreSummon</h1>
e1b217bace 2023-09-09   41: <p>Debug.PreSummon(卡, 召唤类型[, 从哪个区域特召到场上])</p>
e1b217bace 2023-09-09   42: <details>
e1b217bace 2023-09-09   43: <summary>
e1b217bace 2023-09-09   44: 补充
e1b217bace 2023-09-09   45: </summary>
580b09114c 2023-09-09   46: <pre><code>● void Debug.PreSummon(Card c, int sum_type[, int sum_location=0])
580b09114c 2023-09-09   47: 设置卡片 c 的召唤信息:以 sum_type 方法(通常召唤、特殊召唤等)[从 sum_location]出场</code></pre>
e1b217bace 2023-09-09   48: </details>
580b09114c 2023-09-09   49: <p>召唤类型的可选值:</p>
580b09114c 2023-09-09   50: <ol type="1">
8f3a6c70d8 2023-09-18   51: <li><p>SUMMON_TYPE_NORMAL</p></li>
8f3a6c70d8 2023-09-18   52: <li><p>SUMMON_TYPE_ADVANCE</p></li>
8f3a6c70d8 2023-09-18   53: <li><p>SUMMON_TYPE_DUAL</p></li>
8f3a6c70d8 2023-09-18   54: <li><p>SUMMON_TYPE_FLIP</p></li>
8f3a6c70d8 2023-09-18   55: <li><p>SUMMON_TYPE_SPECIAL</p></li>
8f3a6c70d8 2023-09-18   56: <li><p>SUMMON_TYPE_FUSION</p></li>
8f3a6c70d8 2023-09-18   57: <li><p>SUMMON_TYPE_RITUAL</p></li>
8f3a6c70d8 2023-09-18   58: <li><p>SUMMON_TYPE_SYNCHRO</p></li>
8f3a6c70d8 2023-09-18   59: <li><p>SUMMON_TYPE_XYZ</p></li>
8f3a6c70d8 2023-09-18   60: <li><p>SUMMON_TYPE_PENDULUM</p></li>
8f3a6c70d8 2023-09-18   61: <li><p>SUMMON_TYPE_LINK</p></li>
580b09114c 2023-09-09   62: </ol>
580b09114c 2023-09-09   63: <details>
580b09114c 2023-09-09   64: <summary>
580b09114c 2023-09-09   65: 补充
580b09114c 2023-09-09   66: </summary>
e1b217bace 2023-09-09   67: <pre><code>--Summon Type --召唤类型
8f3a6c70d8 2023-09-18   68: 
580b09114c 2023-09-09   69: SUMMON_TYPE_NORMAL      =0x10000000 --通常召唤(EFFECT_SUMMON_PROC,EFFECT_SET_PROC 可用 Value 修改數值)
8f3a6c70d8 2023-09-18   70: 
e1b217bace 2023-09-09   71: SUMMON_TYPE_ADVANCE     =0x11000000 --上级召唤
8f3a6c70d8 2023-09-18   72: 
e1b217bace 2023-09-09   73: SUMMON_TYPE_DUAL        =0x12000000 --再度召唤(二重)
8f3a6c70d8 2023-09-18   74: 
e1b217bace 2023-09-09   75: SUMMON_TYPE_FLIP        =0x20000000 --翻转召唤
8f3a6c70d8 2023-09-18   76: 
580b09114c 2023-09-09   77: SUMMON_TYPE_SPECIAL     =0x40000000 --特殊召唤(EFFECT_SPSUMMON_PROC,EFFECT_SPSUMMON_PROC_G 可用 Value 修改數值)
8f3a6c70d8 2023-09-18   78: 
e1b217bace 2023-09-09   79: SUMMON_TYPE_FUSION      =0x43000000 --融合召唤
8f3a6c70d8 2023-09-18   80: 
e1b217bace 2023-09-09   81: SUMMON_TYPE_RITUAL      =0x45000000 --仪式召唤
8f3a6c70d8 2023-09-18   82: 
e1b217bace 2023-09-09   83: SUMMON_TYPE_SYNCHRO     =0x46000000 --同调召唤
8f3a6c70d8 2023-09-18   84: 
e1b217bace 2023-09-09   85: SUMMON_TYPE_XYZ         =0x49000000 --超量召唤
8f3a6c70d8 2023-09-18   86: 
e1b217bace 2023-09-09   87: SUMMON_TYPE_PENDULUM    =0x4a000000 --灵摆召唤
8f3a6c70d8 2023-09-18   88: 
e1b217bace 2023-09-09   89: SUMMON_TYPE_LINK        =0x4c000000 --连接召唤</code></pre>
580b09114c 2023-09-09   90: </details>
580b09114c 2023-09-09   91: <p>从哪个区域特召到场上的可选值:</p>
580b09114c 2023-09-09   92: <ol type="1">
8f3a6c70d8 2023-09-18   93: <li><p>LOCATION_DECK</p></li>
8f3a6c70d8 2023-09-18   94: <li><p>LOCATION_HAND</p></li>
8f3a6c70d8 2023-09-18   95: <li><p>LOCATION_GRAVE</p></li>
8f3a6c70d8 2023-09-18   96: <li><p>LOCATION_REMOVED</p></li>
8f3a6c70d8 2023-09-18   97: <li><p>LOCATION_EXTRA</p></li>
580b09114c 2023-09-09   98: </ol>
580b09114c 2023-09-09   99: <details>
580b09114c 2023-09-09  100: <summary>
580b09114c 2023-09-09  101: 补充
580b09114c 2023-09-09  102: </summary>
580b09114c 2023-09-09  103: <pre><code>LOCATION_DECK       =0x01       --卡组
8f3a6c70d8 2023-09-18  104: 
580b09114c 2023-09-09  105: LOCATION_HAND       =0x02       --手牌
8f3a6c70d8 2023-09-18  106: 
580b09114c 2023-09-09  107: LOCATION_MZONE      =0x04       --主要怪兽区(0~4)+额外怪兽区(5~6)
8f3a6c70d8 2023-09-18  108: 
580b09114c 2023-09-09  109: LOCATION_SZONE      =0x08       --魔陷区(0~4)+场地区(5)
8f3a6c70d8 2023-09-18  110: 
580b09114c 2023-09-09  111: LOCATION_GRAVE      =0x10       --墓地
8f3a6c70d8 2023-09-18  112: 
580b09114c 2023-09-09  113: LOCATION_REMOVED    =0x20       --除外区
8f3a6c70d8 2023-09-18  114: 
580b09114c 2023-09-09  115: LOCATION_EXTRA      =0x40       --额外
8f3a6c70d8 2023-09-18  116: 
580b09114c 2023-09-09  117: LOCATION_OVERLAY    =0x80       --超量素材
8f3a6c70d8 2023-09-18  118: 
580b09114c 2023-09-09  119: LOCATION_ONFIELD    =0x0c       --场上(LOCATION_MZONE+LOCATION_SZONE)</code></pre>
580b09114c 2023-09-09  120: </details>
580b09114c 2023-09-09  121: <p>可参考 X-LV-48 。</p>
580b09114c 2023-09-09  122: <h1 data-number="2" id="preequip"><span class="header-section-number">2</span> PreEquip</h1>
8f3a6c70d8 2023-09-18  123: <p>Debug.PreEquip(装备魔法卡, 怪兽卡)</p>
580b09114c 2023-09-09  124: <details>
580b09114c 2023-09-09  125: <summary>
580b09114c 2023-09-09  126: 补充
580b09114c 2023-09-09  127: </summary>
580b09114c 2023-09-09  128: <pre><code>● bool Debug.PreEquip(Card equip_card, Card target)
8f3a6c70d8 2023-09-18  129: 
580b09114c 2023-09-09  130: 为 target 添加装备 equip_card ,返回值表示是否成功</code></pre>
580b09114c 2023-09-09  131: </details>
580b09114c 2023-09-09  132: <p>可参考 NH-04 。</p>
580b09114c 2023-09-09  133: <h1 data-number="3" id="presettarget"><span class="header-section-number">3</span> PreSetTarget</h1>
580b09114c 2023-09-09  134: <p>Debug.PreSetTarget(保护卡, 被保护的卡)</p>
580b09114c 2023-09-09  135: <details>
580b09114c 2023-09-09  136: <summary>
580b09114c 2023-09-09  137: 补充
580b09114c 2023-09-09  138: </summary>
580b09114c 2023-09-09  139: <pre><code>● void Debug.PreSetTarget(Card c, Card target)
8f3a6c70d8 2023-09-18  140: 
580b09114c 2023-09-09  141: 把 target 选为 c 的永续对象</code></pre>
4ee6c17ee4 2023-09-09  142: </details>
4ee6c17ee4 2023-09-09  143: <details>
4ee6c17ee4 2023-09-09  144: <summary>
4ee6c17ee4 2023-09-09  145: 警告
4ee6c17ee4 2023-09-09  146: </summary>
4ee6c17ee4 2023-09-09  147: <p>必须在布局完成之后再使用。</p>
580b09114c 2023-09-09  148: </details>
580b09114c 2023-09-09  149: <p>可参考 NH-04 。</p>
e1b217bace 2023-09-09  150: <script>
e1b217bace 2023-09-09  151: 
e1b217bace 2023-09-09  152: document.onclick = function(event) {
e1b217bace 2023-09-09  153: 
e1b217bace 2023-09-09  154:   var target = event.target
e1b217bace 2023-09-09  155: 
e1b217bace 2023-09-09  156:   if (target.tagName == "PRE"
e1b217bace 2023-09-09  157:   || target.tagName == "CODE") {
e1b217bace 2023-09-09  158:     if (window.getSelection().toString() !== "") {
e1b217bace 2023-09-09  159:       return
e1b217bace 2023-09-09  160:       }
e1b217bace 2023-09-09  161:     var range = document.createRange();
e1b217bace 2023-09-09  162:     range.selectNodeContents(target);
e1b217bace 2023-09-09  163:     window.getSelection().removeAllRanges();
e1b217bace 2023-09-09  164:     window.getSelection().addRange(range);
e1b217bace 2023-09-09  165:     var successful = document.execCommand("copy");
e1b217bace 2023-09-09  166:     target.removeAttribute("contenteditable");
e1b217bace 2023-09-09  167:     window.getSelection().removeAllRanges();
e1b217bace 2023-09-09  168:     }
e1b217bace 2023-09-09  169: 
e1b217bace 2023-09-09  170:   }
e1b217bace 2023-09-09  171: 
e1b217bace 2023-09-09  172: </script>
e1b217bace 2023-09-09  173: </body>
e1b217bace 2023-09-09  174: </html>