Lines of
single_doc/三个绑定函数.md
from check-in 3deefdf78e
that are changed by the sequence of edits moving toward
check-in 65f615a2df:
1: # 三个绑定函数
2:
3: ## PreSummon
4:
5: ### 原型
6:
7: Debug.PreSummon(卡, 召唤类型[, 从哪个区域特召到场上])
8:
9: ### 召唤类型的可选值
10:
3deefdf78e 2024-06-28 11: 1. SUMMON_TYPE_NORMAL
3deefdf78e 2024-06-28 12: 1. SUMMON_TYPE_ADVANCE
3deefdf78e 2024-06-28 13: 1. SUMMON_TYPE_DUAL
3deefdf78e 2024-06-28 14: 1. SUMMON_TYPE_FLIP
3deefdf78e 2024-06-28 15: 1. SUMMON_TYPE_SPECIAL
3deefdf78e 2024-06-28 16: 1. SUMMON_TYPE_FUSION
3deefdf78e 2024-06-28 17: 1. SUMMON_TYPE_RITUAL
3deefdf78e 2024-06-28 18: 1. SUMMON_TYPE_SYNCHRO
3deefdf78e 2024-06-28 19: 1. SUMMON_TYPE_XYZ
3deefdf78e 2024-06-28 20: 1. SUMMON_TYPE_PENDULUM
3deefdf78e 2024-06-28 21: 1. SUMMON_TYPE_LINK
22:
23: ### 从哪个区域特召到场上的可选值
24:
25: ~~~
26: LOCATION_DECK =0x01 --卡组
27: LOCATION_HAND =0x02 --手牌
28: LOCATION_MZONE =0x04 --主要怪兽区(0~4)+额外怪兽区(5~6)
29: LOCATION_SZONE =0x08 --魔陷区(0~4)+场地区(5)
30: LOCATION_GRAVE =0x10 --墓地
31: LOCATION_REMOVED =0x20 --除外区
32: LOCATION_EXTRA =0x40 --额外
33: LOCATION_OVERLAY =0x80 --超量素材
34: LOCATION_ONFIELD =0x0c --场上(LOCATION_MZONE+LOCATION_SZONE)
35: ~~~
36:
37: ## PreEquip
38:
39: ### 原型
40:
41: Debug.PreEquip(装备魔法卡, 怪兽卡)
42:
43: ~~~
44: ● bool Debug.PreEquip(Card equip_card, Card target)
45: 为 target 添加装备 equip_card ,返回值表示是否成功
46: ~~~
47:
48: ## PreSetTarget
49:
50: ### 原型
51:
52: Debug.PreSetTarget(保护卡, 被保护的卡)
53:
54: ~~~
55: ● void Debug.PreSetTarget(Card c, Card target)
56: 把 target 选为 c 的永续对象
57: ~~~
58:
59: ### 补充
60:
61: 必须在布局完成之后再使用。