Skip to content

Commit bc86879

Browse files
committed
fix: table lint
1 parent 05d7f74 commit bc86879

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

src/start/middle/function/roleFunction.md

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,21 @@ game.createhero({RID: "资源ID", $name: "主角名字",$speed:速度});
3434

3535
> 无特殊说明,函数前均省略game类。标注默认则表示系统会默认设置该参数
3636
37-
| 参数 | 解释 | 类型 |
38-
| :---- | ---- | ----: |
39-
| RID | 资源ID | `String` |
40-
| $name | 角色名称 | `String` |
41-
| $x | 像素坐标x | `number` |
42-
| $y | 像素坐标y | `number` |
43-
| $bx | 地图块坐标x | `number` |
44-
| $by | 地图块坐标y | `number` |
45-
| $action | 为0表示暂时静止<br>为1表示随机移动<br>为-1表示禁止移动和操作<br>为2表示定向移动 | `number` |
46-
| $direction | 面向方向(0、1、2、3分别表示上右下左) | `number` |
47-
| $showName | 为是否头顶显示名字(默认true) | `Bool` |
48-
| $id | 用于角色特征识别(默认$name) | `String` |
49-
| $penetrate | 是否可穿透 | `Bool` |
50-
| $realSize | 影子大小(默认) | `number` |
51-
| $start | 表示角色是否自动动作(true或false) | `String` |
37+
| 参数 | 解释 | 类型 |
38+
|:----------:|--------------------------------------------------|---------:|
39+
| RID | 资源ID | `String` |
40+
| $name | 角色名称 | `String` |
41+
| $x | 像素坐标x | `number` |
42+
| $y | 像素坐标y | `number` |
43+
| $bx | 地图块坐标x | `number` |
44+
| $by | 地图块坐标y | `number` |
45+
| $action | 为0表示暂时静止<br>为1表示随机移动<br>为-1表示禁止移动和操作<br>为2表示定向移动 | `number` |
46+
| $direction | 面向方向(0、1、2、3分别表示上右下左) | `number` |
47+
| $showName | 为是否头顶显示名字(默认true) | `Bool` |
48+
| $id | 用于角色特征识别(默认$name) | `String` |
49+
| $penetrate | 是否可穿透 | `Bool` |
50+
| $realSize | 影子大小(默认) | `number` |
51+
| $start | 表示角色是否自动动作(true或false) | `String` |
5252

5353
## 控制/获取 主角/角色
5454

@@ -67,28 +67,28 @@ var npcX = npc.$bx;
6767

6868
* 第一个参数:
6969

70-
| 参数 | 解释 | 类型 |
71-
| :---- | ---- | ----: |
72-
| $id | 从id获取属性<br>为0表示主角 | `String` |
70+
| 参数 | 解释 | 类型 |
71+
|:----|-------------------|---------:|
72+
| $id | 从id获取属性<br>为0表示主角 | `String` |
7373

7474
* 内部参数:
7575

76-
| 参数 | 解释 | 类型 |
77-
| :---- | ---- | ----: |
78-
| $x | 像素坐标x | `number` |
79-
| $y | 像素坐标y | `number` |
80-
| $bx | 地图块坐标x | `number` |
81-
| $by | 地图块坐标y | `number` |
82-
| $targetBx | 定向移动地图块坐标x | `number` |
83-
| $targetBy | 定向移动地图块坐标y | `number` |
84-
| $$nActionType | 角色是否运动<br>10为正在运动 | `number` |
85-
| $targetX | 定向移动像素坐标x | `number` |
86-
| $targetY | 定向移动像素坐标y | `number` |
87-
| $action | 为0表示暂时静止<br>为1表示随机移动<br>为-1表示禁止移动和操作<br>为2表示定向移动 | `number` |
88-
| $direction | 面向方向(0、1、2、3分别表示上右下左) | `number` |
89-
| $showName | 为是否头顶显示名字 | `Bool` |
90-
| $realSize | 影子大小 | `number` |
91-
| $start | 表示角色是否自动动作(true或false) | `String` |
76+
| 参数 | 解释 | 类型 |
77+
|:--------------|--------------------------------------------------|---------:|
78+
| $x | 像素坐标x | `number` |
79+
| $y | 像素坐标y | `number` |
80+
| $bx | 地图块坐标x | `number` |
81+
| $by | 地图块坐标y | `number` |
82+
| $targetBx | 定向移动地图块坐标x | `number` |
83+
| $targetBy | 定向移动地图块坐标y | `number` |
84+
| $$nActionType | 角色是否运动<br>10为正在运动 | `number` |
85+
| $targetX | 定向移动像素坐标x | `number` |
86+
| $targetY | 定向移动像素坐标y | `number` |
87+
| $action | 为0表示暂时静止<br>为1表示随机移动<br>为-1表示禁止移动和操作<br>为2表示定向移动 | `number` |
88+
| $direction | 面向方向(0、1、2、3分别表示上右下左) | `number` |
89+
| $showName | 为是否头顶显示名字 | `Bool` |
90+
| $realSize | 影子大小 | `number` |
91+
| $start | 表示角色是否自动动作(true或false) | `String` |
9292

9393
* **删除主角/角色**
9494

@@ -99,9 +99,9 @@ game.delrole(0); //0表示主角
9999
game.delrole(`npc`);
100100
```
101101

102-
| 参数 | 解释 | 类型 |
103-
| :---- | ---- | ----: |
104-
| $id | 填入删除角色的id | `String` |
102+
| 参数 | 解释 | 类型 |
103+
|:----|-----------|---------:|
104+
| $id | 填入删除角色的id | `String` |
105105

106106
## 练习
107107

0 commit comments

Comments
 (0)