Files
dl/document/html/dl__animation__info_8h_source.html
2026-09-16 14:07:40 +08:00

198 lines
35 KiB
HTML
Vendored

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>dl: D:/dl/dl/render/dl_animation_info.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">dl
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.13.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',false,false,'search.php','搜索',false);
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_17297ffb27ce571941f5fb5008f01a1f.html">dl</a></li><li class="navelem"><a class="el" href="dir_fb7736e1c74498e30aec54e277779486.html">render</a></li> </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
<div class="headertitle"><div class="title">dl_animation_info.h</div></div>
</div><!--header-->
<div class="contents">
<a href="dl__animation__info_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include &quot;<a class="code" href="dl__type_8h.html">dl_type.h</a>&quot;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include &quot;<a class="code" href="dl__json_8h.html">io/dl_json.h</a>&quot;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacedl.html">dl</a></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span>{</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="namespacedl.html#a8982306f49f460c86c9f7c3d579e059a"> 20</a></span> <span class="keyword">constexpr</span> <span class="keywordtype">unsigned</span> <a class="code hl_variable" href="namespacedl.html#a8982306f49f460c86c9f7c3d579e059a">ANIMATION_FTIME</a> = 125;</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span></div>
<div class="foldopen" id="foldopen00023" data-start="{" data-end="};">
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="structdl_1_1_animation_info.html"> 23</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structdl_1_1_animation_info.html">AnimationInfo</a></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> {</div>
<div class="foldopen" id="foldopen00025" data-start="{" data-end="};">
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="structdl_1_1_animation_info_1_1_node.html"> 25</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structdl_1_1_animation_info_1_1_node.html">Node</a></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> {</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="structdl_1_1_animation_info_1_1_node.html#ac3f07c8fa2a7694cfe574bc7fd253056"> 27</a></span> <span class="keywordtype">unsigned</span> <a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#ac3f07c8fa2a7694cfe574bc7fd253056">_beg</a> = 0;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="structdl_1_1_animation_info_1_1_node.html#a8a11355229b45727d4bf6dd46e649b07"> 28</a></span> <span class="keywordtype">unsigned</span> <a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#a8a11355229b45727d4bf6dd46e649b07">_skip</a> = 0;</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="structdl_1_1_animation_info_1_1_node.html#ae437e94b02fdce21b3ad8df9057e0a79"> 29</a></span> <span class="keywordtype">unsigned</span> <a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#ae437e94b02fdce21b3ad8df9057e0a79">_ftime</a> = <a class="code hl_variable" href="namespacedl.html#a8982306f49f460c86c9f7c3d579e059a">ANIMATION_FTIME</a>;</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="structdl_1_1_animation_info_1_1_node.html#af495324688bd924bc9f654e2667d4b34"> 30</a></span> <span class="keywordtype">unsigned</span> <a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#af495324688bd924bc9f654e2667d4b34">_dir</a> = 1;</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="structdl_1_1_animation_info_1_1_node.html#aebe85bbdf071e4dbcbad30a8043fb19b"> 31</a></span> <span class="keywordtype">unsigned</span> <a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#aebe85bbdf071e4dbcbad30a8043fb19b">_count</a> = 0;</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> };</div>
</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="structdl_1_1_animation_info.html#a9213934d1d8875d48b4b5c526f187c80"> 33</a></span> std::string <a class="code hl_variable" href="structdl_1_1_animation_info.html#a9213934d1d8875d48b4b5c526f187c80">_type</a> = <span class="stringliteral">&quot;&quot;</span>; <span class="comment">// sheet.动画在一张图上 multi.多张图组成的动画</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="structdl_1_1_animation_info.html#a0e7e3b4907a1122af7744e4a16db312e"> 34</a></span> std::string <a class="code hl_variable" href="structdl_1_1_animation_info.html#a0e7e3b4907a1122af7744e4a16db312e">_format</a> = <span class="stringliteral">&quot;{}_{}&quot;</span>;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="structdl_1_1_animation_info.html#a31c474731add51b7059be5f3519a4082"> 35</a></span> <span class="keywordtype">unsigned</span> <a class="code hl_variable" href="structdl_1_1_animation_info.html#a31c474731add51b7059be5f3519a4082">_skip</a> = 0;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="structdl_1_1_animation_info.html#a141ca630e19866da4c4b211841f78439"> 36</a></span> <span class="keywordtype">unsigned</span> <a class="code hl_variable" href="structdl_1_1_animation_info.html#a141ca630e19866da4c4b211841f78439">_ftime</a> = <a class="code hl_variable" href="namespacedl.html#a8982306f49f460c86c9f7c3d579e059a">ANIMATION_FTIME</a>;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="structdl_1_1_animation_info.html#acb704de21f680b2a7455607502e7512b"> 37</a></span> <span class="keywordtype">unsigned</span> <a class="code hl_variable" href="structdl_1_1_animation_info.html#acb704de21f680b2a7455607502e7512b">_dir</a> = 1;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="structdl_1_1_animation_info.html#ae6b518de42909d73f11c5d7b306ac5ae"> 38</a></span> <span class="keywordtype">unsigned</span> <a class="code hl_variable" href="structdl_1_1_animation_info.html#ae6b518de42909d73f11c5d7b306ac5ae">_count</a> = 0; <span class="comment">// sheet.0表示sheet的所有精灵 multi.表示1张</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="structdl_1_1_animation_info.html#ac4e291fb093ef5ac253c04adabbad95f"> 39</a></span> <a class="code hl_typedef" href="namespacedl.html#a04611b2d3b24b5b4ad6569cdea6f62d4">Position</a> <a class="code hl_variable" href="structdl_1_1_animation_info.html#ac4e291fb093ef5ac253c04adabbad95f">_offset</a> = {}; <span class="comment">// 整体偏移</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="structdl_1_1_animation_info.html#afc2b106aa939c2027c4db26b92c57dbb"> 41</a></span> std::unordered_map&lt;std::string, Node, string_hash, std::equal_to&lt;&gt;&gt; <a class="code hl_variable" href="structdl_1_1_animation_info.html#afc2b106aa939c2027c4db26b92c57dbb">_allAni</a>;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> };</div>
</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
<div class="foldopen" id="foldopen00044" data-start="{" data-end="}">
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="namespacedl.html#a724b9091cb54e8b64387e8fc78c8e550"> 44</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#afbb976cabcb40d3b63d72b5301d24fbb">to_json</a>(<a class="code hl_typedef" href="dl__json_8h.html#ab701e3ac61a85b337ec5c1abaad6742d">json</a>&amp; j, <span class="keyword">const</span> <a class="code hl_struct" href="structdl_1_1_animation_info.html">AnimationInfo</a>&amp; info)</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> {</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> j = <a class="code hl_typedef" href="dl__json_8h.html#ab701e3ac61a85b337ec5c1abaad6742d">json</a>{</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> {<span class="stringliteral">&quot;type&quot;</span>, info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#a9213934d1d8875d48b4b5c526f187c80">_type</a>},</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> {<span class="stringliteral">&quot;format&quot;</span>, info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#a0e7e3b4907a1122af7744e4a16db312e">_format</a>},</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> {<span class="stringliteral">&quot;skip&quot;</span>, info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#a31c474731add51b7059be5f3519a4082">_skip</a>},</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> {<span class="stringliteral">&quot;ftime&quot;</span>, info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#a141ca630e19866da4c4b211841f78439">_ftime</a>},</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> {<span class="stringliteral">&quot;dir&quot;</span>, info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#acb704de21f680b2a7455607502e7512b">_dir</a>},</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> {<span class="stringliteral">&quot;count&quot;</span>, info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#ae6b518de42909d73f11c5d7b306ac5ae">_count</a>},</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> {<span class="stringliteral">&quot;offset&quot;</span>, info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#ac4e291fb093ef5ac253c04adabbad95f">_offset</a>},</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> };</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <a class="code hl_typedef" href="dl__json_8h.html#ab701e3ac61a85b337ec5c1abaad6742d">json</a> j_ani = {};</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; iter : info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#afc2b106aa939c2027c4db26b92c57dbb">_allAni</a>)</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> {</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <a class="code hl_struct" href="structdl_1_1_animation_info_1_1_node.html">AnimationInfo::Node</a> node = iter.second;</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_typedef" href="dl__json_8h.html#ab701e3ac61a85b337ec5c1abaad6742d">json</a> j_node;</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> j_node[<span class="stringliteral">&quot;name&quot;</span>] = iter.first;</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> j_node[<span class="stringliteral">&quot;beg&quot;</span>] = node.<a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#ac3f07c8fa2a7694cfe574bc7fd253056">_beg</a>;</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> j_node[<span class="stringliteral">&quot;skip&quot;</span>] = node.<a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#a8a11355229b45727d4bf6dd46e649b07">_skip</a>;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> j_node[<span class="stringliteral">&quot;ftime&quot;</span>] = node.<a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#ae437e94b02fdce21b3ad8df9057e0a79">_ftime</a>;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> j_node[<span class="stringliteral">&quot;dir&quot;</span>] = node.<a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#af495324688bd924bc9f654e2667d4b34">_dir</a>;</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> j_node[<span class="stringliteral">&quot;count&quot;</span>] = node.<a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#aebe85bbdf071e4dbcbad30a8043fb19b">_count</a>;</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> j_ani.push_back(j_node);</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> }</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> j[<span class="stringliteral">&quot;ani&quot;</span>] = j_ani;</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> }</div>
</div>
<div class="foldopen" id="foldopen00070" data-start="{" data-end="}">
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="namespacedl.html#a9d741455b6f26cc9d09d408a2e7eb2d5"> 70</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a2cce4547ac955414caad7cbd4882b52a">from_json</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="dl__json_8h.html#ab701e3ac61a85b337ec5c1abaad6742d">json</a>&amp; j, <a class="code hl_struct" href="structdl_1_1_animation_info.html">AnimationInfo</a>&amp; info)</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> {</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <a class="code hl_struct" href="structdl_1_1_json_1_1_disable_log.html">Json::DisableLog</a> l;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <a class="code hl_function" href="namespacedl_1_1_json.html#acbbd917ab95107f695018bc2521394c1">Json::Get</a>(j, <span class="stringliteral">&quot;type&quot;</span>, info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#a9213934d1d8875d48b4b5c526f187c80">_type</a>);</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <a class="code hl_function" href="namespacedl_1_1_json.html#acbbd917ab95107f695018bc2521394c1">Json::Get</a>(j, <span class="stringliteral">&quot;format&quot;</span>, info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#a0e7e3b4907a1122af7744e4a16db312e">_format</a>);</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <a class="code hl_function" href="namespacedl_1_1_json.html#acbbd917ab95107f695018bc2521394c1">Json::Get</a>(j, <span class="stringliteral">&quot;skip&quot;</span>, info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#a31c474731add51b7059be5f3519a4082">_skip</a>);</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <a class="code hl_function" href="namespacedl_1_1_json.html#acbbd917ab95107f695018bc2521394c1">Json::Get</a>(j, <span class="stringliteral">&quot;ftime&quot;</span>, info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#a141ca630e19866da4c4b211841f78439">_ftime</a>);</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <a class="code hl_function" href="namespacedl_1_1_json.html#acbbd917ab95107f695018bc2521394c1">Json::Get</a>(j, <span class="stringliteral">&quot;dir&quot;</span>, info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#acb704de21f680b2a7455607502e7512b">_dir</a>);</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <a class="code hl_function" href="namespacedl_1_1_json.html#acbbd917ab95107f695018bc2521394c1">Json::Get</a>(j, <span class="stringliteral">&quot;count&quot;</span>, info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#ae6b518de42909d73f11c5d7b306ac5ae">_count</a>);</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <a class="code hl_function" href="namespacedl_1_1_json.html#acbbd917ab95107f695018bc2521394c1">Json::Get</a>(j, <span class="stringliteral">&quot;offset&quot;</span>, info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#ac4e291fb093ef5ac253c04adabbad95f">_offset</a>);</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <a class="code hl_typedef" href="dl__json_8h.html#ab701e3ac61a85b337ec5c1abaad6742d">json</a> j_ani;</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <a class="code hl_function" href="namespacedl_1_1_json.html#acbbd917ab95107f695018bc2521394c1">Json::Get</a>(j, <span class="stringliteral">&quot;ani&quot;</span>, j_ani);</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; iter : j_ani)</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> {</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> std::string name;</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <a class="code hl_struct" href="structdl_1_1_animation_info_1_1_node.html">AnimationInfo::Node</a> node;</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <a class="code hl_function" href="namespacedl_1_1_json.html#acbbd917ab95107f695018bc2521394c1">Json::Get</a>(iter, <span class="stringliteral">&quot;name&quot;</span>, name);</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <a class="code hl_function" href="namespacedl_1_1_json.html#acbbd917ab95107f695018bc2521394c1">Json::Get</a>(iter, <span class="stringliteral">&quot;beg&quot;</span>, node.<a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#ac3f07c8fa2a7694cfe574bc7fd253056">_beg</a>);</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="keywordflow">if</span> (!<a class="code hl_function" href="namespacedl_1_1_json.html#acbbd917ab95107f695018bc2521394c1">Json::Get</a>(iter, <span class="stringliteral">&quot;skip&quot;</span>, node.<a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#a8a11355229b45727d4bf6dd46e649b07">_skip</a>))</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> node.<a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#a8a11355229b45727d4bf6dd46e649b07">_skip</a> = info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#a31c474731add51b7059be5f3519a4082">_skip</a>;</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="keywordflow">if</span> (!<a class="code hl_function" href="namespacedl_1_1_json.html#acbbd917ab95107f695018bc2521394c1">Json::Get</a>(iter, <span class="stringliteral">&quot;ftime&quot;</span>, node.<a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#ae437e94b02fdce21b3ad8df9057e0a79">_ftime</a>))</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> node.<a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#ae437e94b02fdce21b3ad8df9057e0a79">_ftime</a> = info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#a141ca630e19866da4c4b211841f78439">_ftime</a>;</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keywordflow">if</span> (!<a class="code hl_function" href="namespacedl_1_1_json.html#acbbd917ab95107f695018bc2521394c1">Json::Get</a>(iter, <span class="stringliteral">&quot;dir&quot;</span>, node.<a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#af495324688bd924bc9f654e2667d4b34">_dir</a>))</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> node.<a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#af495324688bd924bc9f654e2667d4b34">_dir</a> = info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#acb704de21f680b2a7455607502e7512b">_dir</a>;</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keywordflow">if</span> (!<a class="code hl_function" href="namespacedl_1_1_json.html#acbbd917ab95107f695018bc2521394c1">Json::Get</a>(iter, <span class="stringliteral">&quot;count&quot;</span>, node.<a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#aebe85bbdf071e4dbcbad30a8043fb19b">_count</a>))</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> node.<a class="code hl_variable" href="structdl_1_1_animation_info_1_1_node.html#aebe85bbdf071e4dbcbad30a8043fb19b">_count</a> = info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#ae6b518de42909d73f11c5d7b306ac5ae">_count</a>;</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="keyword">auto</span> iter1 = info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#afc2b106aa939c2027c4db26b92c57dbb">_allAni</a>.find(name);</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keywordflow">if</span> (iter1 != info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#afc2b106aa939c2027c4db26b92c57dbb">_allAni</a>.end())</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> {</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <a class="code hl_define" href="dl__log_8h.html#a04af09851c431d178f16b24fa1aac1e9">log_warn</a>(<span class="stringliteral">&quot;子动画名重复,将覆盖:{}&quot;</span>, name);</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> }</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> info.<a class="code hl_variable" href="structdl_1_1_animation_info.html#afc2b106aa939c2027c4db26b92c57dbb">_allAni</a>[name] = node;</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> }</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> }</div>
</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span>}</div>
<div class="ttc" id="adl__json_8h_html"><div class="ttname"><a href="dl__json_8h.html">dl_json.h</a></div><div class="ttdoc">json格式相关</div></div>
<div class="ttc" id="adl__json_8h_html_ab701e3ac61a85b337ec5c1abaad6742d"><div class="ttname"><a href="dl__json_8h.html#ab701e3ac61a85b337ec5c1abaad6742d">json</a></div><div class="ttdeci">nlohmann::json json</div><div class="ttdef"><b>定义</b> <a href="dl__json_8h_source.html#l00020">dl_json.h:20</a></div></div>
<div class="ttc" id="adl__log_8h_html_a04af09851c431d178f16b24fa1aac1e9"><div class="ttname"><a href="dl__log_8h.html#a04af09851c431d178f16b24fa1aac1e9">log_warn</a></div><div class="ttdeci">#define log_warn(...)</div><div class="ttdef"><b>定义</b> <a href="dl__log_8h_source.html#l00283">dl_log.h:283</a></div></div>
<div class="ttc" id="adl__type_8h_html"><div class="ttname"><a href="dl__type_8h.html">dl_type.h</a></div><div class="ttdoc">通用类型</div></div>
<div class="ttc" id="anamespacedl_1_1_json_html_acbbd917ab95107f695018bc2521394c1"><div class="ttname"><a href="namespacedl_1_1_json.html#acbbd917ab95107f695018bc2521394c1">dl::Json::Get</a></div><div class="ttdeci">bool Get(const json &amp;j, const std::string &amp;name, T &amp;t)</div><div class="ttdoc">从json返回子元素值,不存在则返回false,打印日志</div><div class="ttdef"><b>定义</b> <a href="dl__json_8h_source.html#l00068">dl_json.h:68</a></div></div>
<div class="ttc" id="anamespacedl_html"><div class="ttname"><a href="namespacedl.html">dl</a></div><div class="ttdef"><b>定义</b> <a href="dl__array_8h_source.html#l00021">dl_array.h:22</a></div></div>
<div class="ttc" id="anamespacedl_html_a04611b2d3b24b5b4ad6569cdea6f62d4"><div class="ttname"><a href="namespacedl.html#a04611b2d3b24b5b4ad6569cdea6f62d4">dl::Position</a></div><div class="ttdeci">Position2 Position</div><div class="ttdef"><b>定义</b> <a href="dl__type__def_8h_source.html#l00044">dl_type_def.h:44</a></div></div>
<div class="ttc" id="anamespacedl_html_a2cce4547ac955414caad7cbd4882b52a"><div class="ttname"><a href="namespacedl.html#a2cce4547ac955414caad7cbd4882b52a">dl::from_json</a></div><div class="ttdeci">void from_json(const json &amp;j, Array&lt; T, N &gt; &amp;arr)</div><div class="ttdef"><b>定义</b> <a href="dl__json_8h_source.html#l00139">dl_json.h:139</a></div></div>
<div class="ttc" id="anamespacedl_html_a8982306f49f460c86c9f7c3d579e059a"><div class="ttname"><a href="namespacedl.html#a8982306f49f460c86c9f7c3d579e059a">dl::ANIMATION_FTIME</a></div><div class="ttdeci">constexpr unsigned ANIMATION_FTIME</div><div class="ttdef"><b>定义</b> <a href="#l00020">dl_animation_info.h:20</a></div></div>
<div class="ttc" id="anamespacedl_html_afbb976cabcb40d3b63d72b5301d24fbb"><div class="ttname"><a href="namespacedl.html#afbb976cabcb40d3b63d72b5301d24fbb">dl::to_json</a></div><div class="ttdeci">void to_json(json &amp;j, const Array&lt; T, N &gt; &amp;arr)</div><div class="ttdef"><b>定义</b> <a href="dl__json_8h_source.html#l00148">dl_json.h:148</a></div></div>
<div class="ttc" id="astructdl_1_1_animation_info_1_1_node_html"><div class="ttname"><a href="structdl_1_1_animation_info_1_1_node.html">dl::AnimationInfo::Node</a></div><div class="ttdef"><b>定义</b> <a href="#l00025">dl_animation_info.h:26</a></div></div>
<div class="ttc" id="astructdl_1_1_animation_info_1_1_node_html_a8a11355229b45727d4bf6dd46e649b07"><div class="ttname"><a href="structdl_1_1_animation_info_1_1_node.html#a8a11355229b45727d4bf6dd46e649b07">dl::AnimationInfo::Node::_skip</a></div><div class="ttdeci">unsigned _skip</div><div class="ttdef"><b>定义</b> <a href="#l00028">dl_animation_info.h:28</a></div></div>
<div class="ttc" id="astructdl_1_1_animation_info_1_1_node_html_ac3f07c8fa2a7694cfe574bc7fd253056"><div class="ttname"><a href="structdl_1_1_animation_info_1_1_node.html#ac3f07c8fa2a7694cfe574bc7fd253056">dl::AnimationInfo::Node::_beg</a></div><div class="ttdeci">unsigned _beg</div><div class="ttdef"><b>定义</b> <a href="#l00027">dl_animation_info.h:27</a></div></div>
<div class="ttc" id="astructdl_1_1_animation_info_1_1_node_html_ae437e94b02fdce21b3ad8df9057e0a79"><div class="ttname"><a href="structdl_1_1_animation_info_1_1_node.html#ae437e94b02fdce21b3ad8df9057e0a79">dl::AnimationInfo::Node::_ftime</a></div><div class="ttdeci">unsigned _ftime</div><div class="ttdef"><b>定义</b> <a href="#l00029">dl_animation_info.h:29</a></div></div>
<div class="ttc" id="astructdl_1_1_animation_info_1_1_node_html_aebe85bbdf071e4dbcbad30a8043fb19b"><div class="ttname"><a href="structdl_1_1_animation_info_1_1_node.html#aebe85bbdf071e4dbcbad30a8043fb19b">dl::AnimationInfo::Node::_count</a></div><div class="ttdeci">unsigned _count</div><div class="ttdef"><b>定义</b> <a href="#l00031">dl_animation_info.h:31</a></div></div>
<div class="ttc" id="astructdl_1_1_animation_info_1_1_node_html_af495324688bd924bc9f654e2667d4b34"><div class="ttname"><a href="structdl_1_1_animation_info_1_1_node.html#af495324688bd924bc9f654e2667d4b34">dl::AnimationInfo::Node::_dir</a></div><div class="ttdeci">unsigned _dir</div><div class="ttdef"><b>定义</b> <a href="#l00030">dl_animation_info.h:30</a></div></div>
<div class="ttc" id="astructdl_1_1_animation_info_html"><div class="ttname"><a href="structdl_1_1_animation_info.html">dl::AnimationInfo</a></div><div class="ttdoc">动画信息</div><div class="ttdef"><b>定义</b> <a href="#l00023">dl_animation_info.h:24</a></div></div>
<div class="ttc" id="astructdl_1_1_animation_info_html_a0e7e3b4907a1122af7744e4a16db312e"><div class="ttname"><a href="structdl_1_1_animation_info.html#a0e7e3b4907a1122af7744e4a16db312e">dl::AnimationInfo::_format</a></div><div class="ttdeci">std::string _format</div><div class="ttdef"><b>定义</b> <a href="#l00034">dl_animation_info.h:34</a></div></div>
<div class="ttc" id="astructdl_1_1_animation_info_html_a141ca630e19866da4c4b211841f78439"><div class="ttname"><a href="structdl_1_1_animation_info.html#a141ca630e19866da4c4b211841f78439">dl::AnimationInfo::_ftime</a></div><div class="ttdeci">unsigned _ftime</div><div class="ttdef"><b>定义</b> <a href="#l00036">dl_animation_info.h:36</a></div></div>
<div class="ttc" id="astructdl_1_1_animation_info_html_a31c474731add51b7059be5f3519a4082"><div class="ttname"><a href="structdl_1_1_animation_info.html#a31c474731add51b7059be5f3519a4082">dl::AnimationInfo::_skip</a></div><div class="ttdeci">unsigned _skip</div><div class="ttdef"><b>定义</b> <a href="#l00035">dl_animation_info.h:35</a></div></div>
<div class="ttc" id="astructdl_1_1_animation_info_html_a9213934d1d8875d48b4b5c526f187c80"><div class="ttname"><a href="structdl_1_1_animation_info.html#a9213934d1d8875d48b4b5c526f187c80">dl::AnimationInfo::_type</a></div><div class="ttdeci">std::string _type</div><div class="ttdef"><b>定义</b> <a href="#l00033">dl_animation_info.h:33</a></div></div>
<div class="ttc" id="astructdl_1_1_animation_info_html_ac4e291fb093ef5ac253c04adabbad95f"><div class="ttname"><a href="structdl_1_1_animation_info.html#ac4e291fb093ef5ac253c04adabbad95f">dl::AnimationInfo::_offset</a></div><div class="ttdeci">Position _offset</div><div class="ttdef"><b>定义</b> <a href="#l00039">dl_animation_info.h:39</a></div></div>
<div class="ttc" id="astructdl_1_1_animation_info_html_acb704de21f680b2a7455607502e7512b"><div class="ttname"><a href="structdl_1_1_animation_info.html#acb704de21f680b2a7455607502e7512b">dl::AnimationInfo::_dir</a></div><div class="ttdeci">unsigned _dir</div><div class="ttdef"><b>定义</b> <a href="#l00037">dl_animation_info.h:37</a></div></div>
<div class="ttc" id="astructdl_1_1_animation_info_html_ae6b518de42909d73f11c5d7b306ac5ae"><div class="ttname"><a href="structdl_1_1_animation_info.html#ae6b518de42909d73f11c5d7b306ac5ae">dl::AnimationInfo::_count</a></div><div class="ttdeci">unsigned _count</div><div class="ttdef"><b>定义</b> <a href="#l00038">dl_animation_info.h:38</a></div></div>
<div class="ttc" id="astructdl_1_1_animation_info_html_afc2b106aa939c2027c4db26b92c57dbb"><div class="ttname"><a href="structdl_1_1_animation_info.html#afc2b106aa939c2027c4db26b92c57dbb">dl::AnimationInfo::_allAni</a></div><div class="ttdeci">std::unordered_map&lt; std::string, Node, string_hash, std::equal_to&lt;&gt; &gt; _allAni</div><div class="ttdef"><b>定义</b> <a href="#l00041">dl_animation_info.h:41</a></div></div>
<div class="ttc" id="astructdl_1_1_json_1_1_disable_log_html"><div class="ttname"><a href="structdl_1_1_json_1_1_disable_log.html">dl::Json::DisableLog</a></div><div class="ttdoc">临时关闭json日志</div><div class="ttdef"><b>定义</b> <a href="dl__json_8h_source.html#l00034">dl_json.h:35</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.1
</small></address>
</div><!-- doc-content -->
</body>
</html>