游戏王残局简化版

Annotation For 残局文料/三个绑定函数.md
Login

Annotation For 残局文料/三个绑定函数.md

Origin for each line in 残局文料/三个绑定函数.md from check-in 1cea8ec3df:

1cea8ec3df 2024-01-21    1: # 三个绑定函数
1cea8ec3df 2024-01-21    2: 
1cea8ec3df 2024-01-21    3: ## PreSummon
1cea8ec3df 2024-01-21    4: 
1cea8ec3df 2024-01-21    5: ### 原型
1cea8ec3df 2024-01-21    6: 
1cea8ec3df 2024-01-21    7: Debug.PreSummon(卡, 召唤类型[, 从哪个区域特召到场上])
1cea8ec3df 2024-01-21    8: 
1cea8ec3df 2024-01-21    9: ***
1cea8ec3df 2024-01-21   10: 
1cea8ec3df 2024-01-21   11: ~~~
1cea8ec3df 2024-01-21   12: ● void Debug.PreSummon(Card c, int sum_type[, int sum_location=0])
1cea8ec3df 2024-01-21   13: 设置卡片 c 的召唤信息:以 sum_type 方法(通常召唤、特殊召唤等)[从 sum_location]出场
1cea8ec3df 2024-01-21   14: ~~~
1cea8ec3df 2024-01-21   15: 
1cea8ec3df 2024-01-21   16: ### 召唤类型的可选值
1cea8ec3df 2024-01-21   17: 
1cea8ec3df 2024-01-21   18: 1. SUMMON_TYPE_NORMAL
1cea8ec3df 2024-01-21   19: 
1cea8ec3df 2024-01-21   20: 1. SUMMON_TYPE_ADVANCE
1cea8ec3df 2024-01-21   21: 
1cea8ec3df 2024-01-21   22: 1. SUMMON_TYPE_DUAL
1cea8ec3df 2024-01-21   23: 
1cea8ec3df 2024-01-21   24: 1. SUMMON_TYPE_FLIP
1cea8ec3df 2024-01-21   25: 
1cea8ec3df 2024-01-21   26: 1. SUMMON_TYPE_SPECIAL
1cea8ec3df 2024-01-21   27: 
1cea8ec3df 2024-01-21   28: 1. SUMMON_TYPE_FUSION
1cea8ec3df 2024-01-21   29: 
1cea8ec3df 2024-01-21   30: 1. SUMMON_TYPE_RITUAL
1cea8ec3df 2024-01-21   31: 
1cea8ec3df 2024-01-21   32: 1. SUMMON_TYPE_SYNCHRO
1cea8ec3df 2024-01-21   33: 
1cea8ec3df 2024-01-21   34: 1. SUMMON_TYPE_XYZ
1cea8ec3df 2024-01-21   35: 
1cea8ec3df 2024-01-21   36: 1. SUMMON_TYPE_PENDULUM
1cea8ec3df 2024-01-21   37: 
1cea8ec3df 2024-01-21   38: 1. SUMMON_TYPE_LINK
1cea8ec3df 2024-01-21   39: 
1cea8ec3df 2024-01-21   40: ***
1cea8ec3df 2024-01-21   41: 
1cea8ec3df 2024-01-21   42: ~~~
1cea8ec3df 2024-01-21   43: --Summon Type --召唤类型
1cea8ec3df 2024-01-21   44: 
1cea8ec3df 2024-01-21   45: SUMMON_TYPE_NORMAL		=0x10000000 --通常召唤(EFFECT_SUMMON_PROC,EFFECT_SET_PROC 可用 Value 修改數值)
1cea8ec3df 2024-01-21   46: 
1cea8ec3df 2024-01-21   47: SUMMON_TYPE_ADVANCE		=0x11000000 --上级召唤
1cea8ec3df 2024-01-21   48: 
1cea8ec3df 2024-01-21   49: SUMMON_TYPE_DUAL		=0x12000000	--再度召唤(二重)
1cea8ec3df 2024-01-21   50: 
1cea8ec3df 2024-01-21   51: SUMMON_TYPE_FLIP		=0x20000000	--翻转召唤
1cea8ec3df 2024-01-21   52: 
1cea8ec3df 2024-01-21   53: SUMMON_TYPE_SPECIAL		=0x40000000	--特殊召唤(EFFECT_SPSUMMON_PROC,EFFECT_SPSUMMON_PROC_G 可用 Value 修改數值)
1cea8ec3df 2024-01-21   54: 
1cea8ec3df 2024-01-21   55: SUMMON_TYPE_FUSION		=0x43000000	--融合召唤
1cea8ec3df 2024-01-21   56: 
1cea8ec3df 2024-01-21   57: SUMMON_TYPE_RITUAL		=0x45000000	--仪式召唤
1cea8ec3df 2024-01-21   58: 
1cea8ec3df 2024-01-21   59: SUMMON_TYPE_SYNCHRO		=0x46000000	--同调召唤
1cea8ec3df 2024-01-21   60: 
1cea8ec3df 2024-01-21   61: SUMMON_TYPE_XYZ			=0x49000000	--超量召唤
1cea8ec3df 2024-01-21   62: 
1cea8ec3df 2024-01-21   63: SUMMON_TYPE_PENDULUM	=0x4a000000 --灵摆召唤
1cea8ec3df 2024-01-21   64: 
1cea8ec3df 2024-01-21   65: SUMMON_TYPE_LINK		=0x4c000000 --连接召唤
1cea8ec3df 2024-01-21   66: ~~~
1cea8ec3df 2024-01-21   67: 
1cea8ec3df 2024-01-21   68: ### 从哪个区域特召到场上的可选值
1cea8ec3df 2024-01-21   69: 
1cea8ec3df 2024-01-21   70: 1. LOCATION_DECK
1cea8ec3df 2024-01-21   71: 
1cea8ec3df 2024-01-21   72: 1. LOCATION_HAND
1cea8ec3df 2024-01-21   73: 
1cea8ec3df 2024-01-21   74: 1. LOCATION_GRAVE
1cea8ec3df 2024-01-21   75: 
1cea8ec3df 2024-01-21   76: 1. LOCATION_REMOVED
1cea8ec3df 2024-01-21   77: 
1cea8ec3df 2024-01-21   78: 1. LOCATION_EXTRA
1cea8ec3df 2024-01-21   79: 
1cea8ec3df 2024-01-21   80: ***
1cea8ec3df 2024-01-21   81: 
1cea8ec3df 2024-01-21   82: ~~~
1cea8ec3df 2024-01-21   83: LOCATION_DECK		=0x01		--卡组
1cea8ec3df 2024-01-21   84: 
1cea8ec3df 2024-01-21   85: LOCATION_HAND		=0x02		--手牌
1cea8ec3df 2024-01-21   86: 
1cea8ec3df 2024-01-21   87: LOCATION_MZONE		=0x04		--主要怪兽区(0~4)+额外怪兽区(5~6)
1cea8ec3df 2024-01-21   88: 
1cea8ec3df 2024-01-21   89: LOCATION_SZONE		=0x08		--魔陷区(0~4)+场地区(5)
1cea8ec3df 2024-01-21   90: 
1cea8ec3df 2024-01-21   91: LOCATION_GRAVE		=0x10		--墓地
1cea8ec3df 2024-01-21   92: 
1cea8ec3df 2024-01-21   93: LOCATION_REMOVED	=0x20		--除外区
1cea8ec3df 2024-01-21   94: 
1cea8ec3df 2024-01-21   95: LOCATION_EXTRA		=0x40		--额外
1cea8ec3df 2024-01-21   96: 
1cea8ec3df 2024-01-21   97: LOCATION_OVERLAY	=0x80		--超量素材
1cea8ec3df 2024-01-21   98: 
1cea8ec3df 2024-01-21   99: LOCATION_ONFIELD	=0x0c		--场上(LOCATION_MZONE+LOCATION_SZONE)
1cea8ec3df 2024-01-21  100: ~~~
1cea8ec3df 2024-01-21  101: 
1cea8ec3df 2024-01-21  102: ### 补充
1cea8ec3df 2024-01-21  103: 
1cea8ec3df 2024-01-21  104: 可参考 X-LV-48 。
1cea8ec3df 2024-01-21  105: 
1cea8ec3df 2024-01-21  106: ## PreEquip
1cea8ec3df 2024-01-21  107: 
1cea8ec3df 2024-01-21  108: ### 原型
1cea8ec3df 2024-01-21  109: 
1cea8ec3df 2024-01-21  110: Debug.PreEquip(装备魔法卡, 怪兽卡)
1cea8ec3df 2024-01-21  111: 
1cea8ec3df 2024-01-21  112: ***
1cea8ec3df 2024-01-21  113: 
1cea8ec3df 2024-01-21  114: ~~~
1cea8ec3df 2024-01-21  115: ● bool Debug.PreEquip(Card equip_card, Card target)
1cea8ec3df 2024-01-21  116: 为 target 添加装备 equip_card ,返回值表示是否成功
1cea8ec3df 2024-01-21  117: ~~~
1cea8ec3df 2024-01-21  118: 
1cea8ec3df 2024-01-21  119: ### 补充
1cea8ec3df 2024-01-21  120: 
1cea8ec3df 2024-01-21  121: 1. 可参考 NH-04
1cea8ec3df 2024-01-21  122: 
1cea8ec3df 2024-01-21  123: 1. 不能以怪兽装备怪兽
1cea8ec3df 2024-01-21  124: 
1cea8ec3df 2024-01-21  125: ## PreSetTarget
1cea8ec3df 2024-01-21  126: 
1cea8ec3df 2024-01-21  127: ### 原型
1cea8ec3df 2024-01-21  128: 
1cea8ec3df 2024-01-21  129: Debug.PreSetTarget(保护卡, 被保护的卡)
1cea8ec3df 2024-01-21  130: 
1cea8ec3df 2024-01-21  131: ***
1cea8ec3df 2024-01-21  132: 
1cea8ec3df 2024-01-21  133: ~~~
1cea8ec3df 2024-01-21  134: ● void Debug.PreSetTarget(Card c, Card target)
1cea8ec3df 2024-01-21  135: 
1cea8ec3df 2024-01-21  136: 把 target 选为 c 的永续对象
1cea8ec3df 2024-01-21  137: ~~~
1cea8ec3df 2024-01-21  138: 
1cea8ec3df 2024-01-21  139: ### 补充
1cea8ec3df 2024-01-21  140: 
1cea8ec3df 2024-01-21  141: 1. 必须在布局完成之后再使用。
1cea8ec3df 2024-01-21  142: 
1cea8ec3df 2024-01-21  143: 1. 可参考 NH-04 。