游戏王残局简化版

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

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

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

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