godot-cpp-utils-docs/html/game__mode_8hpp_source.html

157 lines
10 KiB
HTML
Raw Normal View History

2024-05-29 17:40:11 +00:00
<!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="en-US">
<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.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>godot-cpp-utils: game_mode.hpp Source File</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>
2024-05-29 21:29:38 +00:00
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
2024-05-29 17:40:11 +00:00
<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>
2024-05-29 21:29:38 +00:00
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_search(); });
/* @license-end */
</script>
2024-05-29 17:50:33 +00:00
<script type="text/javascript" src="darkmode_toggle.js"></script>
2024-05-29 17:40:11 +00:00
<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">godot-cpp-utils
</div>
<div id="projectbrief">A collection of utility classes, functions and macros for use with Godot and GDExtension.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
2024-05-29 21:29:38 +00:00
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<span id="MSearchSelect" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
<input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
2024-05-29 17:40:11 +00:00
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
2024-05-29 21:29:38 +00:00
$(document).ready(function(){initNavTree('game__mode_8hpp_source.html',''); initResizable(); });
2024-05-29 17:40:11 +00:00
/* @license-end */
</script>
2024-05-29 21:29:38 +00:00
<div id="doc-content">
2024-05-29 17:40:11 +00:00
<!-- 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">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="headertitle"><div class="title">game_mode.hpp</div></div>
</div><!--header-->
<div class="contents">
2024-05-29 21:07:31 +00:00
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef UTILS_GAME_MODE_HPP</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define UTILS_GAME_MODE_HPP</span></div>
2024-05-29 17:40:11 +00:00
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include &lt;godot_cpp/classes/packed_scene.hpp&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include &lt;godot_cpp/classes/resource.hpp&gt;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="keyword">namespace </span>gd = godot;</div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="keyword">namespace </span>utils {</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="classutils_1_1GameMode.html"> 15</a></span><span class="keyword">class </span><a class="code hl_class" href="classutils_1_1GameMode.html">GameMode</a> : <span class="keyword">public</span> gd::Resource {</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> GDCLASS(<a class="code hl_class" href="classutils_1_1GameMode.html">GameMode</a>, gd::Resource);</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> <span class="keyword">static</span> <span class="keywordtype">void</span> _bind_methods();</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classutils_1_1GameMode.html#aa1b190a57e4106951a559301665739ec">_begin</a>(); </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classutils_1_1GameMode.html#ae69ff36bf1c3f60fad279e9991ca2d82">_end</a>(); </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <span class="keywordtype">void</span> set_player_scene(gd::Ref&lt;gd::PackedScene&gt; scene);</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> gd::Ref&lt;gd::PackedScene&gt; get_player_scene() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="classutils_1_1GameMode.html#a7e7258b38b17cde56ba9b130bbaf9908"> 25</a></span> gd::Ref&lt;gd::PackedScene&gt; <a class="code hl_variable" href="classutils_1_1GameMode.html#a7e7258b38b17cde56ba9b130bbaf9908">player_scene</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"> 27</span>}</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
2024-05-29 21:07:31 +00:00
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#endif </span><span class="comment">// !UTILS_GAME_MODE_HPP</span></div>
2024-05-29 17:40:11 +00:00
<div class="ttc" id="aclassutils_1_1GameMode_html"><div class="ttname"><a href="classutils_1_1GameMode.html">utils::GameMode</a></div><div class="ttdoc">Stores session-relevant data.</div><div class="ttdef"><b>Definition</b> game_mode.hpp:15</div></div>
<div class="ttc" id="aclassutils_1_1GameMode_html_a7e7258b38b17cde56ba9b130bbaf9908"><div class="ttname"><a href="classutils_1_1GameMode.html#a7e7258b38b17cde56ba9b130bbaf9908">utils::GameMode::player_scene</a></div><div class="ttdeci">gd::Ref&lt; gd::PackedScene &gt; player_scene</div><div class="ttdoc">The scene to instantiate when spawning a player.</div><div class="ttdef"><b>Definition</b> game_mode.hpp:25</div></div>
<div class="ttc" id="aclassutils_1_1GameMode_html_aa1b190a57e4106951a559301665739ec"><div class="ttname"><a href="classutils_1_1GameMode.html#aa1b190a57e4106951a559301665739ec">utils::GameMode::_begin</a></div><div class="ttdeci">virtual void _begin()</div><div class="ttdoc">Called when the match begins.</div><div class="ttdef"><b>Definition</b> game_mode.cpp:13</div></div>
<div class="ttc" id="aclassutils_1_1GameMode_html_ae69ff36bf1c3f60fad279e9991ca2d82"><div class="ttname"><a href="classutils_1_1GameMode.html#ae69ff36bf1c3f60fad279e9991ca2d82">utils::GameMode::_end</a></div><div class="ttdeci">virtual void _end()</div><div class="ttdoc">Called when the match is ending.</div><div class="ttdef"><b>Definition</b> game_mode.cpp:14</div></div>
</div><!-- fragment --></div><!-- contents -->
2024-05-29 21:29:38 +00:00
</div><!-- doc-content -->
2024-05-29 17:40:11 +00:00
<!-- start footer part -->
2024-05-29 21:29:38 +00:00
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><b>game_mode.hpp</b></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7 </li>
</ul>
</div>
2024-05-29 17:40:11 +00:00
</body>
</html>