pppi-rpg-game/program/html/class_localization_manager.html

181 lines
9.2 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: Класс LocalizationManager</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&amp;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&amp;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>
<!-- 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><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Открытые члены</a> &#124;
<a href="class_localization_manager-members.html">Полный список членов класса</a> </div>
<div class="headertitle">
<div class="title">Класс LocalizationManager</div> </div>
</div><!--header-->
<div class="contents">
<p>Класс <a class="el" href="class_localization_manager.html" title="Класс LocalizationManager переводит текст и аудио игры на разные языки.">LocalizationManager</a> переводит текст и аудио игры на разные языки.
<a href="class_localization_manager.html#details">Подробнее...</a></p>
<p><code>#include &lt;<a class="el" href="localization__manager_8h_source.html">localization_manager.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Открытые члены</h2></td></tr>
<tr class="memitem:abff19c89d4c43d29fb5c48d7d1c549ff"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization_manager.html#abff19c89d4c43d29fb5c48d7d1c549ff">loadLanguagePack</a> (const std::string &amp;languageCode)</td></tr>
<tr class="memdesc:abff19c89d4c43d29fb5c48d7d1c549ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Загружает языковой пакет. <a href="class_localization_manager.html#abff19c89d4c43d29fb5c48d7d1c549ff">Подробнее...</a><br /></td></tr>
<tr class="separator:abff19c89d4c43d29fb5c48d7d1c549ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dd0b9948e2ae4947fb08d9165e3dc59"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization_manager.html#a6dd0b9948e2ae4947fb08d9165e3dc59">getString</a> (const std::string &amp;key)</td></tr>
<tr class="memdesc:a6dd0b9948e2ae4947fb08d9165e3dc59"><td class="mdescLeft">&#160;</td><td class="mdescRight">Получает переведенную строку по ключу. <a href="class_localization_manager.html#a6dd0b9948e2ae4947fb08d9165e3dc59">Подробнее...</a><br /></td></tr>
<tr class="separator:a6dd0b9948e2ae4947fb08d9165e3dc59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72afe1b0d03d1385a83c63aa39ff03e8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization_manager.html#a72afe1b0d03d1385a83c63aa39ff03e8">setCurrentLanguage</a> (const std::string &amp;languageCode)</td></tr>
<tr class="memdesc:a72afe1b0d03d1385a83c63aa39ff03e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Устанавливает текущий язык интерфейса. <a href="class_localization_manager.html#a72afe1b0d03d1385a83c63aa39ff03e8">Подробнее...</a><br /></td></tr>
<tr class="separator:a72afe1b0d03d1385a83c63aa39ff03e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Подробное описание</h2>
<div class="textblock"><p>Класс <a class="el" href="class_localization_manager.html" title="Класс LocalizationManager переводит текст и аудио игры на разные языки.">LocalizationManager</a> переводит текст и аудио игры на разные языки. </p>
</div><h2 class="groupheader">Методы</h2>
<a id="a6dd0b9948e2ae4947fb08d9165e3dc59"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6dd0b9948e2ae4947fb08d9165e3dc59">&#9670;&nbsp;</a></span>getString()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string LocalizationManager::getString </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>key</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Получает переведенную строку по ключу. </p>
<dl class="params"><dt>Аргументы</dt><dd>
<table class="params">
<tr><td class="paramname">key</td><td>Ключ строки для перевода. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Возвращает</dt><dd>Переведенная строка. </dd></dl>
</div>
</div>
<a id="abff19c89d4c43d29fb5c48d7d1c549ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abff19c89d4c43d29fb5c48d7d1c549ff">&#9670;&nbsp;</a></span>loadLanguagePack()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void LocalizationManager::loadLanguagePack </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>languageCode</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Загружает языковой пакет. </p>
<dl class="params"><dt>Аргументы</dt><dd>
<table class="params">
<tr><td class="paramname">languageCode</td><td>Код языка для загрузки. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a72afe1b0d03d1385a83c63aa39ff03e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a72afe1b0d03d1385a83c63aa39ff03e8">&#9670;&nbsp;</a></span>setCurrentLanguage()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void LocalizationManager::setCurrentLanguage </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>languageCode</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Устанавливает текущий язык интерфейса. </p>
<dl class="params"><dt>Аргументы</dt><dd>
<table class="params">
<tr><td class="paramname">languageCode</td><td>Код языка интерфейса. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>Объявления и описания членов класса находятся в файле:<ul>
<li><a class="el" href="localization__manager_8h_source.html">localization_manager.h</a></li>
</ul>
</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.9.1
</small></address>
</body>
</html>