mirror of
https://github.com/Maks1mS/pppi-rpg-game.git
synced 2024-12-25 07:04:38 +03:00
98 lines
9.0 KiB
HTML
98 lines
9.0 KiB
HTML
|
<!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">
|
|||
|
<head>
|
|||
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|||
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|||
|
<meta name="generator" content="Doxygen 1.9.1"/>
|
|||
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|||
|
<title>PPPI RPG Game: Исходный файл save_load_system.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>
|
|||
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|||
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|||
|
<script type="text/javascript" src="search/search.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 style="height: 56px;">
|
|||
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|||
|
<div id="projectname">PPPI RPG Game
|
|||
|
</div>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
</div>
|
|||
|
<!-- end header part -->
|
|||
|
<!-- Создано системой Doxygen 1.9.1 -->
|
|||
|
<script type="text/javascript">
|
|||
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|||
|
var searchBox = new SearchBox("searchBox", "search",false,'Поиск','.html');
|
|||
|
/* @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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|||
|
$(function() {
|
|||
|
initMenu('',true,false,'search.php','Поиск');
|
|||
|
$(document).ready(function() { init_search(); });
|
|||
|
});
|
|||
|
/* @license-end */</script>
|
|||
|
<div id="main-nav"></div>
|
|||
|
</div><!-- top -->
|
|||
|
<!-- window showing the filter options -->
|
|||
|
<div id="MSearchSelectWindow"
|
|||
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|||
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|||
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|||
|
</div>
|
|||
|
|
|||
|
<!-- iframe showing the search results (closed by default) -->
|
|||
|
<div id="MSearchResultsWindow">
|
|||
|
<iframe src="javascript:void(0)" frameborder="0"
|
|||
|
name="MSearchResults" id="MSearchResults">
|
|||
|
</iframe>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="header">
|
|||
|
<div class="headertitle">
|
|||
|
<div class="title">save_load_system.h</div> </div>
|
|||
|
</div><!--header-->
|
|||
|
<div class="contents">
|
|||
|
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>  </div>
|
|||
|
<div class="line"><a name="l00004"></a><span class="lineno"><a class="line" href="class_save_load_system.html"> 4</a></span> <span class="keyword">class </span><a class="code" href="class_save_load_system.html">SaveLoadSystem</a> {</div>
|
|||
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="keyword">public</span>:</div>
|
|||
|
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="class_save_load_system.html#a31fcc0da725b07fc0f37f0cb3089e64f"> 11</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_save_load_system.html#a31fcc0da725b07fc0f37f0cb3089e64f">saveGame</a>(<span class="keyword">const</span> std::string& saveFileName, <span class="comment">/* другие параметры, например, данные о состоянии игры */</span>);</div>
|
|||
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  </div>
|
|||
|
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="class_save_load_system.html#a958db47854276a20dd05f4667efedd52"> 17</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_save_load_system.html#a958db47854276a20dd05f4667efedd52">loadGame</a>(<span class="keyword">const</span> std::string& saveFileName);</div>
|
|||
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div>
|
|||
|
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="class_save_load_system.html#a2c98f49b73df9103038259dbf2e2d92f"> 23</a></span>  std::vector<std::string> <a class="code" href="class_save_load_system.html#a2c98f49b73df9103038259dbf2e2d92f">listSaveFiles</a>();</div>
|
|||
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div>
|
|||
|
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="class_save_load_system.html#af4ca3c59e3a54cbb83f3e86e37b52678"> 29</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_save_load_system.html#af4ca3c59e3a54cbb83f3e86e37b52678">deleteSaveFile</a>(<span class="keyword">const</span> std::string& saveFileName);</div>
|
|||
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
|
|||
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">private</span>:</div>
|
|||
|
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="class_save_load_system.html#aee6cfe1ef668a4f35c4ea45992648d2a"> 36</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_save_load_system.html#aee6cfe1ef668a4f35c4ea45992648d2a">serializeGameState</a>(<span class="comment">/* параметры состояния игры */</span>);</div>
|
|||
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  </div>
|
|||
|
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="class_save_load_system.html#a03a7ad36d7299b930caffe09b791ac16"> 42</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_save_load_system.html#a03a7ad36d7299b930caffe09b791ac16">deserializeGameState</a>(<span class="comment">/* параметры для загрузки состояния игры */</span>);</div>
|
|||
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> };</div>
|
|||
|
<div class="ttc" id="aclass_save_load_system_html"><div class="ttname"><a href="class_save_load_system.html">SaveLoadSystem</a></div><div class="ttdoc">Класс SaveLoadSystem позволяет игроку сохранять и загружать свой прогресс.</div><div class="ttdef"><b>Definition:</b> save_load_system.h:4</div></div>
|
|||
|
<div class="ttc" id="aclass_save_load_system_html_a03a7ad36d7299b930caffe09b791ac16"><div class="ttname"><a href="class_save_load_system.html#a03a7ad36d7299b930caffe09b791ac16">SaveLoadSystem::deserializeGameState</a></div><div class="ttdeci">void deserializeGameState()</div><div class="ttdoc">Десериализует данные состояния игры из файла сохранения.</div></div>
|
|||
|
<div class="ttc" id="aclass_save_load_system_html_a2c98f49b73df9103038259dbf2e2d92f"><div class="ttname"><a href="class_save_load_system.html#a2c98f49b73df9103038259dbf2e2d92f">SaveLoadSystem::listSaveFiles</a></div><div class="ttdeci">std::vector< std::string > listSaveFiles()</div><div class="ttdoc">Перечисляет доступные файлы сохранений.</div></div>
|
|||
|
<div class="ttc" id="aclass_save_load_system_html_a31fcc0da725b07fc0f37f0cb3089e64f"><div class="ttname"><a href="class_save_load_system.html#a31fcc0da725b07fc0f37f0cb3089e64f">SaveLoadSystem::saveGame</a></div><div class="ttdeci">void saveGame(const std::string &saveFileName,)</div><div class="ttdoc">Сохраняет текущее состояние игры в файл.</div></div>
|
|||
|
<div class="ttc" id="aclass_save_load_system_html_a958db47854276a20dd05f4667efedd52"><div class="ttname"><a href="class_save_load_system.html#a958db47854276a20dd05f4667efedd52">SaveLoadSystem::loadGame</a></div><div class="ttdeci">void loadGame(const std::string &saveFileName)</div><div class="ttdoc">Загружает состояние игры из файла.</div></div>
|
|||
|
<div class="ttc" id="aclass_save_load_system_html_aee6cfe1ef668a4f35c4ea45992648d2a"><div class="ttname"><a href="class_save_load_system.html#aee6cfe1ef668a4f35c4ea45992648d2a">SaveLoadSystem::serializeGameState</a></div><div class="ttdeci">void serializeGameState()</div><div class="ttdoc">Сериализует данные состояния игры для сохранения.</div></div>
|
|||
|
<div class="ttc" id="aclass_save_load_system_html_af4ca3c59e3a54cbb83f3e86e37b52678"><div class="ttname"><a href="class_save_load_system.html#af4ca3c59e3a54cbb83f3e86e37b52678">SaveLoadSystem::deleteSaveFile</a></div><div class="ttdeci">void deleteSaveFile(const std::string &saveFileName)</div><div class="ttdoc">Удаляет файл сохранения.</div></div>
|
|||
|
</div><!-- fragment --></div><!-- contents -->
|
|||
|
<!-- start footer part -->
|
|||
|
<hr class="footer"/><address class="footer"><small>
|
|||
|
Создано системой <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
|
|||
|
</small></address>
|
|||
|
</body>
|
|||
|
</html>
|