Skip to content

Commit

Permalink
deploy: a2f56cd
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenMian committed Mar 1, 2024
1 parent 4c58d48 commit 22e85a9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion level/parse_level.html
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ <h2 id="单个关卡解析"><a class="header" href="#单个关卡解析">单个
// ... SKIP ...
}
</code></pre>
<p><code>Level::from_str</code> 只负责解析元数据和注释, 地图数据将交给 <code>Map::from_str</code> 进一步解析.
<p>因为只需要对字符串进行解析, 所以参数类型为 <code>&amp;str</code>. 除了存储解析到的注释和元数据, 没有额外的动态内存分配.
<code>Level::from_str</code> 只负责解析元数据和注释, 地图数据将交给 <code>Map::from_str</code> 进一步解析.
注释被当成了一个键为 "comments" 的元数据.</p>
<h2 id="多个关卡解析"><a class="header" href="#多个关卡解析">多个关卡解析</a></h2>
<p>多个关卡解析就是将字符串以关卡为单位进行切片, 然后再使用单个关卡解析方法逐个解析.
Expand Down
3 changes: 2 additions & 1 deletion print.html
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@ <h2 id="单个关卡解析"><a class="header" href="#单个关卡解析">单个
// ... SKIP ...
}
</code></pre>
<p><code>Level::from_str</code> 只负责解析元数据和注释, 地图数据将交给 <code>Map::from_str</code> 进一步解析.
<p>因为只需要对字符串进行解析, 所以参数类型为 <code>&amp;str</code>. 除了存储解析到的注释和元数据, 没有额外的动态内存分配.
<code>Level::from_str</code> 只负责解析元数据和注释, 地图数据将交给 <code>Map::from_str</code> 进一步解析.
注释被当成了一个键为 "comments" 的元数据.</p>
<h2 id="多个关卡解析"><a class="header" href="#多个关卡解析">多个关卡解析</a></h2>
<p>多个关卡解析就是将字符串以关卡为单位进行切片, 然后再使用单个关卡解析方法逐个解析.
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit 22e85a9

Please sign in to comment.