2024-05-29 23:15

main
Sara 2024-05-29 23:15:31 +02:00
parent 8123b45e48
commit 4a6751aa3e
10 changed files with 507 additions and 67 deletions

View File

@ -79,7 +79,7 @@ $(function() {
<tr id="row_0_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="game__mode_8hpp_source.html"><span class="icondoc"></span></a><b>game_mode.hpp</b></td><td class="desc"></td></tr> <tr id="row_0_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="game__mode_8hpp_source.html"><span class="icondoc"></span></a><b>game_mode.hpp</b></td><td class="desc"></td></tr>
<tr id="row_1_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="game__root_8hpp_source.html"><span class="icondoc"></span></a><b>game_root.hpp</b></td><td class="desc"></td></tr> <tr id="row_1_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="game__root_8hpp_source.html"><span class="icondoc"></span></a><b>game_root.hpp</b></td><td class="desc"></td></tr>
<tr id="row_2_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="game__state_8hpp_source.html"><span class="icondoc"></span></a><b>game_state.hpp</b></td><td class="desc"></td></tr> <tr id="row_2_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="game__state_8hpp_source.html"><span class="icondoc"></span></a><b>game_state.hpp</b></td><td class="desc"></td></tr>
<tr id="row_3_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="godot__macros_8hpp_source.html"><span class="icondoc"></span></a><b>godot_macros.hpp</b></td><td class="desc"></td></tr> <tr id="row_3_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="godot__macros_8hpp_source.html"><span class="icondoc"></span></a><a class="el" href="godot__macros_8hpp.html" target="_self">godot_macros.hpp</a></td><td class="desc">C-style preprocessor macros to simplify using godot's C++ API </td></tr>
<tr id="row_4_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="level_8hpp_source.html"><span class="icondoc"></span></a><b>level.hpp</b></td><td class="desc"></td></tr> <tr id="row_4_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="level_8hpp_source.html"><span class="icondoc"></span></a><b>level.hpp</b></td><td class="desc"></td></tr>
<tr id="row_5_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="player_8hpp_source.html"><span class="icondoc"></span></a><b>player.hpp</b></td><td class="desc"></td></tr> <tr id="row_5_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="player_8hpp_source.html"><span class="icondoc"></span></a><b>player.hpp</b></td><td class="desc"></td></tr>
<tr id="row_6_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="player__input_8hpp_source.html"><span class="icondoc"></span></a><b>player_input.hpp</b></td><td class="desc"></td></tr> <tr id="row_6_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="player__input_8hpp_source.html"><span class="icondoc"></span></a><b>player_input.hpp</b></td><td class="desc"></td></tr>

View File

@ -72,17 +72,17 @@ $(function() {
<div class="contents"> <div class="contents">
<div class="textblock">Here is a list of all documented file members with links to the documentation:</div><ul> <div class="textblock">Here is a list of all documented file members with links to the documentation:</div><ul>
<li>GDEDITORONLY&#160;:&#160;<a class="el" href="godot__macros_8h.html#a36c0da7ac54da4b5a5a9fe754e68eaa1">godot_macros.h</a></li> <li>GDEDITORONLY&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#a36c0da7ac54da4b5a5a9fe754e68eaa1">godot_macros.hpp</a></li>
<li>GDENUM&#160;:&#160;<a class="el" href="godot__macros_8h.html#a069154a04e2e9e1df6cbbec0a0fc8829">godot_macros.h</a></li> <li>GDENUM&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#a069154a04e2e9e1df6cbbec0a0fc8829">godot_macros.hpp</a></li>
<li>GDFUNCTION&#160;:&#160;<a class="el" href="godot__macros_8h.html#aec4c8284cb9ea77c97a7037176081801">godot_macros.h</a></li> <li>GDFUNCTION&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#aec4c8284cb9ea77c97a7037176081801">godot_macros.hpp</a></li>
<li>GDFUNCTION_ARGS&#160;:&#160;<a class="el" href="godot__macros_8h.html#abb5f0f48b26566dab84ff075fdc9fb4e">godot_macros.h</a></li> <li>GDFUNCTION_ARGS&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#abb5f0f48b26566dab84ff075fdc9fb4e">godot_macros.hpp</a></li>
<li>GDFUNCTION_STATIC&#160;:&#160;<a class="el" href="godot__macros_8h.html#ab1d89a5d5f8e83ed25d64195e8e432b6">godot_macros.h</a></li> <li>GDFUNCTION_STATIC&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#ab1d89a5d5f8e83ed25d64195e8e432b6">godot_macros.hpp</a></li>
<li>GDFUNCTION_STATIC_ARGS&#160;:&#160;<a class="el" href="godot__macros_8h.html#a26ae27fbaa531f900a2e3a2c339975df">godot_macros.h</a></li> <li>GDFUNCTION_STATIC_ARGS&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#a26ae27fbaa531f900a2e3a2c339975df">godot_macros.hpp</a></li>
<li>GDGAMEONLY&#160;:&#160;<a class="el" href="godot__macros_8h.html#a33ac9c3bfce05f857cfdd472cb00ca89">godot_macros.h</a></li> <li>GDGAMEONLY&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#a33ac9c3bfce05f857cfdd472cb00ca89">godot_macros.hpp</a></li>
<li>GDPROPERTY&#160;:&#160;<a class="el" href="godot__macros_8h.html#a3dab0009fb317e0fce558e09edd4964c">godot_macros.h</a></li> <li>GDPROPERTY&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#a3dab0009fb317e0fce558e09edd4964c">godot_macros.hpp</a></li>
<li>GDPROPERTY_HINTED&#160;:&#160;<a class="el" href="godot__macros_8h.html#a9e70408fe612616931e2c251eb149114">godot_macros.h</a></li> <li>GDPROPERTY_HINTED&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#a9e70408fe612616931e2c251eb149114">godot_macros.hpp</a></li>
<li>GDRESOURCETYPE&#160;:&#160;<a class="el" href="godot__macros_8h.html#ae0818ebba543d3c6e8a61f460509451f">godot_macros.h</a></li> <li>GDRESOURCETYPE&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#ae0818ebba543d3c6e8a61f460509451f">godot_macros.hpp</a></li>
<li>GDSIGNAL&#160;:&#160;<a class="el" href="godot__macros_8h.html#abed0b44fb9b7da904a745cd09219ddea">godot_macros.h</a></li> <li>GDSIGNAL&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#abed0b44fb9b7da904a745cd09219ddea">godot_macros.hpp</a></li>
</ul> </ul>
</div><!-- contents --> </div><!-- contents -->
<!-- start footer part --> <!-- start footer part -->

View File

@ -72,17 +72,17 @@ $(function() {
<div class="contents"> <div class="contents">
<div class="textblock">Here is a list of all documented macros with links to the documentation:</div><ul> <div class="textblock">Here is a list of all documented macros with links to the documentation:</div><ul>
<li>GDEDITORONLY&#160;:&#160;<a class="el" href="godot__macros_8h.html#a36c0da7ac54da4b5a5a9fe754e68eaa1">godot_macros.h</a></li> <li>GDEDITORONLY&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#a36c0da7ac54da4b5a5a9fe754e68eaa1">godot_macros.hpp</a></li>
<li>GDENUM&#160;:&#160;<a class="el" href="godot__macros_8h.html#a069154a04e2e9e1df6cbbec0a0fc8829">godot_macros.h</a></li> <li>GDENUM&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#a069154a04e2e9e1df6cbbec0a0fc8829">godot_macros.hpp</a></li>
<li>GDFUNCTION&#160;:&#160;<a class="el" href="godot__macros_8h.html#aec4c8284cb9ea77c97a7037176081801">godot_macros.h</a></li> <li>GDFUNCTION&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#aec4c8284cb9ea77c97a7037176081801">godot_macros.hpp</a></li>
<li>GDFUNCTION_ARGS&#160;:&#160;<a class="el" href="godot__macros_8h.html#abb5f0f48b26566dab84ff075fdc9fb4e">godot_macros.h</a></li> <li>GDFUNCTION_ARGS&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#abb5f0f48b26566dab84ff075fdc9fb4e">godot_macros.hpp</a></li>
<li>GDFUNCTION_STATIC&#160;:&#160;<a class="el" href="godot__macros_8h.html#ab1d89a5d5f8e83ed25d64195e8e432b6">godot_macros.h</a></li> <li>GDFUNCTION_STATIC&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#ab1d89a5d5f8e83ed25d64195e8e432b6">godot_macros.hpp</a></li>
<li>GDFUNCTION_STATIC_ARGS&#160;:&#160;<a class="el" href="godot__macros_8h.html#a26ae27fbaa531f900a2e3a2c339975df">godot_macros.h</a></li> <li>GDFUNCTION_STATIC_ARGS&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#a26ae27fbaa531f900a2e3a2c339975df">godot_macros.hpp</a></li>
<li>GDGAMEONLY&#160;:&#160;<a class="el" href="godot__macros_8h.html#a33ac9c3bfce05f857cfdd472cb00ca89">godot_macros.h</a></li> <li>GDGAMEONLY&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#a33ac9c3bfce05f857cfdd472cb00ca89">godot_macros.hpp</a></li>
<li>GDPROPERTY&#160;:&#160;<a class="el" href="godot__macros_8h.html#a3dab0009fb317e0fce558e09edd4964c">godot_macros.h</a></li> <li>GDPROPERTY&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#a3dab0009fb317e0fce558e09edd4964c">godot_macros.hpp</a></li>
<li>GDPROPERTY_HINTED&#160;:&#160;<a class="el" href="godot__macros_8h.html#a9e70408fe612616931e2c251eb149114">godot_macros.h</a></li> <li>GDPROPERTY_HINTED&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#a9e70408fe612616931e2c251eb149114">godot_macros.hpp</a></li>
<li>GDRESOURCETYPE&#160;:&#160;<a class="el" href="godot__macros_8h.html#ae0818ebba543d3c6e8a61f460509451f">godot_macros.h</a></li> <li>GDRESOURCETYPE&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#ae0818ebba543d3c6e8a61f460509451f">godot_macros.hpp</a></li>
<li>GDSIGNAL&#160;:&#160;<a class="el" href="godot__macros_8h.html#abed0b44fb9b7da904a745cd09219ddea">godot_macros.h</a></li> <li>GDSIGNAL&#160;:&#160;<a class="el" href="godot__macros_8hpp.html#abed0b44fb9b7da904a745cd09219ddea">godot_macros.hpp</a></li>
</ul> </ul>
</div><!-- contents --> </div><!-- contents -->
<!-- start footer part --> <!-- start footer part -->

View File

@ -0,0 +1,419 @@
<!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: godot_macros.hpp File Reference</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>
<script type="text/javascript" src="darkmode_toggle.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">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>
<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('',true,false,'search.php','Search');
$(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">
<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><!-- top -->
<div class="header">
<div class="summary">
<a href="#define-members">Macros</a> </div>
<div class="headertitle"><div class="title">godot_macros.hpp File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>C-style preprocessor macros to simplify using godot's C++ API.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;godot_cpp/classes/engine.hpp&quot;</code><br />
<code>#include &quot;godot_cpp/core/class_db.hpp&quot;</code><br />
<code>#include &quot;godot_cpp/variant/string.hpp&quot;</code><br />
</div>
<p><a href="godot__macros_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a7458deef1a40348503d0a48ffd0003f6"><td class="memItemLeft" align="right" valign="top"><a id="a7458deef1a40348503d0a48ffd0003f6" name="a7458deef1a40348503d0a48ffd0003f6"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>MACRO_STRING_INNER</b>(_Arg)&#160;&#160;&#160;#_Arg</td></tr>
<tr class="separator:a7458deef1a40348503d0a48ffd0003f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0be8cf11055d2f4c194baa2c5cbb8b19"><td class="memItemLeft" align="right" valign="top"><a id="a0be8cf11055d2f4c194baa2c5cbb8b19" name="a0be8cf11055d2f4c194baa2c5cbb8b19"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>MACRO_STRING</b>(_Arg)&#160;&#160;&#160;MACRO_STRING_INNER(_Arg)</td></tr>
<tr class="separator:a0be8cf11055d2f4c194baa2c5cbb8b19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3dab0009fb317e0fce558e09edd4964c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="godot__macros_8hpp.html#a3dab0009fb317e0fce558e09edd4964c">GDPROPERTY</a>(PropName_, PropType_)</td></tr>
<tr class="memdesc:a3dab0009fb317e0fce558e09edd4964c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register property. <br /></td></tr>
<tr class="separator:a3dab0009fb317e0fce558e09edd4964c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e70408fe612616931e2c251eb149114"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="godot__macros_8hpp.html#a9e70408fe612616931e2c251eb149114">GDPROPERTY_HINTED</a>(PropName_, PropType_, ...)</td></tr>
<tr class="memdesc:a9e70408fe612616931e2c251eb149114"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a hinted property. <br /></td></tr>
<tr class="separator:a9e70408fe612616931e2c251eb149114"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec4c8284cb9ea77c97a7037176081801"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="godot__macros_8hpp.html#aec4c8284cb9ea77c97a7037176081801">GDFUNCTION</a>(FnName_)&#160;&#160;&#160;godot::ClassDB::bind_method(godot::D_METHOD(#FnName_), &amp;CLASSNAME::FnName_)</td></tr>
<tr class="memdesc:aec4c8284cb9ea77c97a7037176081801"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a function CLASSNAME::FnName_() to godot. <br /></td></tr>
<tr class="separator:aec4c8284cb9ea77c97a7037176081801"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb5f0f48b26566dab84ff075fdc9fb4e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="godot__macros_8hpp.html#abb5f0f48b26566dab84ff075fdc9fb4e">GDFUNCTION_ARGS</a>(FnName_, ...)&#160;&#160;&#160;godot::ClassDB::bind_method(godot::D_METHOD(#FnName_, __VA_ARGS__), &amp;CLASSNAME::FnName_)</td></tr>
<tr class="memdesc:abb5f0f48b26566dab84ff075fdc9fb4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a function CLASSNAME::FnName_(...) to godot. <br /></td></tr>
<tr class="separator:abb5f0f48b26566dab84ff075fdc9fb4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1d89a5d5f8e83ed25d64195e8e432b6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="godot__macros_8hpp.html#ab1d89a5d5f8e83ed25d64195e8e432b6">GDFUNCTION_STATIC</a>(FnName_)&#160;&#160;&#160;godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#FnName_), &amp;CLASSNAME::_FnName)</td></tr>
<tr class="memdesc:ab1d89a5d5f8e83ed25d64195e8e432b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a static member function CLASSNAME::FnName_() to godot. <br /></td></tr>
<tr class="separator:ab1d89a5d5f8e83ed25d64195e8e432b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26ae27fbaa531f900a2e3a2c339975df"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="godot__macros_8hpp.html#a26ae27fbaa531f900a2e3a2c339975df">GDFUNCTION_STATIC_ARGS</a>(FnName_, ...)&#160;&#160;&#160;godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#FnName_, __VA_ARGS__), &amp;CLASSNAME::FnName_)</td></tr>
<tr class="memdesc:a26ae27fbaa531f900a2e3a2c339975df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a static member function CLASSNAME::FnName_(...) to godot. <br /></td></tr>
<tr class="separator:a26ae27fbaa531f900a2e3a2c339975df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abed0b44fb9b7da904a745cd09219ddea"><td class="memItemLeft" align="right" valign="top"><a id="abed0b44fb9b7da904a745cd09219ddea" name="abed0b44fb9b7da904a745cd09219ddea"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>GDSIGNAL</b>(...)&#160;&#160;&#160;godot::ClassDB::add_signal(MACRO_STRING(CLASSNAME), godot::MethodInfo(__VA_ARGS__))</td></tr>
<tr class="memdesc:abed0b44fb9b7da904a745cd09219ddea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Declare a godot Observer signal. <br /></td></tr>
<tr class="separator:abed0b44fb9b7da904a745cd09219ddea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0818ebba543d3c6e8a61f460509451f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="godot__macros_8hpp.html#ae0818ebba543d3c6e8a61f460509451f">GDRESOURCETYPE</a>(Class_)&#160;&#160;&#160;godot::vformat(&quot;%s/%s:%s&quot;, godot::Variant::OBJECT, godot::PROPERTY_HINT_RESOURCE_TYPE, #Class_)</td></tr>
<tr class="memdesc:ae0818ebba543d3c6e8a61f460509451f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct godot resource type hint. <br /></td></tr>
<tr class="separator:ae0818ebba543d3c6e8a61f460509451f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36c0da7ac54da4b5a5a9fe754e68eaa1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="godot__macros_8hpp.html#a36c0da7ac54da4b5a5a9fe754e68eaa1">GDEDITORONLY</a>()&#160;&#160;&#160;if(!godot::Engine::get_singleton()-&gt;is_editor_hint()) return;</td></tr>
<tr class="memdesc:a36c0da7ac54da4b5a5a9fe754e68eaa1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Execute the rest of the function only if currently running as editor. <br /></td></tr>
<tr class="separator:a36c0da7ac54da4b5a5a9fe754e68eaa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33ac9c3bfce05f857cfdd472cb00ca89"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="godot__macros_8hpp.html#a33ac9c3bfce05f857cfdd472cb00ca89">GDGAMEONLY</a>()&#160;&#160;&#160;if(godot::Engine::get_singleton()-&gt;is_editor_hint()) return;</td></tr>
<tr class="memdesc:a33ac9c3bfce05f857cfdd472cb00ca89"><td class="mdescLeft">&#160;</td><td class="mdescRight">Execute the rest of the function only if currently running as game. <br /></td></tr>
<tr class="separator:a33ac9c3bfce05f857cfdd472cb00ca89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a069154a04e2e9e1df6cbbec0a0fc8829"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="godot__macros_8hpp.html#a069154a04e2e9e1df6cbbec0a0fc8829">GDENUM</a>(Name_, ...)</td></tr>
<tr class="memdesc:a069154a04e2e9e1df6cbbec0a0fc8829"><td class="mdescLeft">&#160;</td><td class="mdescRight">Declare a scoped enum struct. <br /></td></tr>
<tr class="separator:a069154a04e2e9e1df6cbbec0a0fc8829"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>C-style preprocessor macros to simplify using godot's C++ API. </p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a36c0da7ac54da4b5a5a9fe754e68eaa1" name="a36c0da7ac54da4b5a5a9fe754e68eaa1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a36c0da7ac54da4b5a5a9fe754e68eaa1">&#9670;&#160;</a></span>GDEDITORONLY</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define GDEDITORONLY</td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td>&#160;&#160;&#160;if(!godot::Engine::get_singleton()-&gt;is_editor_hint()) return;</td>
</tr>
</table>
</div><div class="memdoc">
<p>Execute the rest of the function only if currently running as editor. </p>
<p>Useful for _ready, _enter/_exit, _process, etc. functions. </p>
</div>
</div>
<a id="a069154a04e2e9e1df6cbbec0a0fc8829" name="a069154a04e2e9e1df6cbbec0a0fc8829"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a069154a04e2e9e1df6cbbec0a0fc8829">&#9670;&#160;</a></span>GDENUM</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define GDENUM</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">Name_, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>...</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keyword">struct </span>Name_ {\</div>
<div class="line"> <span class="keyword">enum</span> Value {__VA_ARGS__};\</div>
<div class="line"> <span class="keyword">private</span>:\</div>
<div class="line"> Value value{};\</div>
<div class="line"> <span class="keyword">public</span>:\</div>
<div class="line"> <span class="keyword">static</span> <span class="keyword">inline</span> godot::String get_property_hint() { <span class="keywordflow">return</span> godot::String(#__VA_ARGS__); }\</div>
<div class="line"> <span class="keyword">inline</span> Name_(Value value): value{value} {}\</div>
<div class="line"> <span class="keyword">inline</span> Name_(Name_ <span class="keyword">const</span> &amp;value): value{value.value} {}\</div>
<div class="line">}</div>
</div><!-- fragment -->
<p>Declare a scoped enum struct. </p>
<p>Declares a struct Name_ with an enum Value and a single variable and a get_property_hint() function. </p>
</div>
</div>
<a id="aec4c8284cb9ea77c97a7037176081801" name="aec4c8284cb9ea77c97a7037176081801"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec4c8284cb9ea77c97a7037176081801">&#9670;&#160;</a></span>GDFUNCTION</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define GDFUNCTION</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">FnName_</td><td>)</td>
<td>&#160;&#160;&#160;godot::ClassDB::bind_method(godot::D_METHOD(#FnName_), &amp;CLASSNAME::FnName_)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Register a function CLASSNAME::FnName_() to godot. </p>
<p>Requires setting CLASSNAME as a #define first. </p>
</div>
</div>
<a id="abb5f0f48b26566dab84ff075fdc9fb4e" name="abb5f0f48b26566dab84ff075fdc9fb4e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb5f0f48b26566dab84ff075fdc9fb4e">&#9670;&#160;</a></span>GDFUNCTION_ARGS</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define GDFUNCTION_ARGS</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">FnName_, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>...</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td>&#160;&#160;&#160;godot::ClassDB::bind_method(godot::D_METHOD(#FnName_, __VA_ARGS__), &amp;CLASSNAME::FnName_)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Register a function CLASSNAME::FnName_(...) to godot. </p>
<p>Requires setting CLASSNAME as a #define first. </p>
</div>
</div>
<a id="ab1d89a5d5f8e83ed25d64195e8e432b6" name="ab1d89a5d5f8e83ed25d64195e8e432b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1d89a5d5f8e83ed25d64195e8e432b6">&#9670;&#160;</a></span>GDFUNCTION_STATIC</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define GDFUNCTION_STATIC</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">FnName_</td><td>)</td>
<td>&#160;&#160;&#160;godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#FnName_), &amp;CLASSNAME::_FnName)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Register a static member function CLASSNAME::FnName_() to godot. </p>
<p>Requires setting CLASSNAME as a #define first. </p>
</div>
</div>
<a id="a26ae27fbaa531f900a2e3a2c339975df" name="a26ae27fbaa531f900a2e3a2c339975df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26ae27fbaa531f900a2e3a2c339975df">&#9670;&#160;</a></span>GDFUNCTION_STATIC_ARGS</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define GDFUNCTION_STATIC_ARGS</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">FnName_, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>...</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td>&#160;&#160;&#160;godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#FnName_, __VA_ARGS__), &amp;CLASSNAME::FnName_)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Register a static member function CLASSNAME::FnName_(...) to godot. </p>
<p>Requires setting CLASSNAME as a #define first. </p>
</div>
</div>
<a id="a33ac9c3bfce05f857cfdd472cb00ca89" name="a33ac9c3bfce05f857cfdd472cb00ca89"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33ac9c3bfce05f857cfdd472cb00ca89">&#9670;&#160;</a></span>GDGAMEONLY</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define GDGAMEONLY</td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td>&#160;&#160;&#160;if(godot::Engine::get_singleton()-&gt;is_editor_hint()) return;</td>
</tr>
</table>
</div><div class="memdoc">
<p>Execute the rest of the function only if currently running as game. </p>
<p>Useful for _ready, _enter/_exit, _process, etc. functions. </p>
</div>
</div>
<a id="a3dab0009fb317e0fce558e09edd4964c" name="a3dab0009fb317e0fce558e09edd4964c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3dab0009fb317e0fce558e09edd4964c">&#9670;&#160;</a></span>GDPROPERTY</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define GDPROPERTY</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">PropName_, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">PropType_&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"> godot::ClassDB::bind_method(godot::D_METHOD(<span class="stringliteral">&quot;get_&quot;</span> #PropName_), &amp;CLASSNAME::get_##PropName_); \</div>
<div class="line"> godot::ClassDB::bind_method(godot::D_METHOD(<span class="stringliteral">&quot;set_&quot;</span> #PropName_, <span class="stringliteral">&quot;value&quot;</span>), &amp;CLASSNAME::set_##PropName_); \</div>
<div class="line"> godot::ClassDB::add_property(MACRO_STRING(CLASSNAME), godot::PropertyInfo(PropType_, #PropName_), <span class="stringliteral">&quot;set_&quot;</span> #PropName_, <span class="stringliteral">&quot;get_&quot;</span> #PropName_)</div>
</div><!-- fragment -->
<p>Register property. </p>
<p>Register variable CLASSNAME::PropName_ with variant type PropType_. Requires setting CLASSNAME as a #define first. Also requires a CLASSNAME::get_PropName_ and CLASSNAME::set_PropName_ to exist. </p>
</div>
</div>
<a id="a9e70408fe612616931e2c251eb149114" name="a9e70408fe612616931e2c251eb149114"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e70408fe612616931e2c251eb149114">&#9670;&#160;</a></span>GDPROPERTY_HINTED</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define GDPROPERTY_HINTED</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">PropName_, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">PropType_, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>...</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"> godot::ClassDB::bind_method(godot::D_METHOD(<span class="stringliteral">&quot;get_&quot;</span> #PropName_), &amp;CLASSNAME::get_##PropName_); \</div>
<div class="line"> godot::ClassDB::bind_method(godot::D_METHOD(<span class="stringliteral">&quot;set_&quot;</span> #PropName_, <span class="stringliteral">&quot;value&quot;</span>), &amp;CLASSNAME::set_##PropName_); \</div>
<div class="line"> godot::ClassDB::add_property(MACRO_STRING(CLASSNAME), godot::PropertyInfo(PropType_, #PropName_, __VA_ARGS__), <span class="stringliteral">&quot;set_&quot;</span> #PropName_, <span class="stringliteral">&quot;get_&quot;</span> #PropName_)</div>
</div><!-- fragment -->
<p>Register a hinted property. </p>
<p>Register variable CLASSNAME::PropName_ with variant type PropType_. Requires setting CLASSNAME as a #define first, and CLASSNAME::get_PropName and CLASSNAME::set_PropName_ to exist. </p>
</div>
</div>
<a id="ae0818ebba543d3c6e8a61f460509451f" name="ae0818ebba543d3c6e8a61f460509451f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0818ebba543d3c6e8a61f460509451f">&#9670;&#160;</a></span>GDRESOURCETYPE</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define GDRESOURCETYPE</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">Class_</td><td>)</td>
<td>&#160;&#160;&#160;godot::vformat(&quot;%s/%s:%s&quot;, godot::Variant::OBJECT, godot::PROPERTY_HINT_RESOURCE_TYPE, #Class_)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Construct godot resource type hint. </p>
<p>Use when registering properties of arrays of resource classes. </p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7
</small></address>
</body>
</html>

View File

@ -74,7 +74,7 @@ $(function() {
<div class="headertitle"><div class="title">godot_macros.hpp</div></div> <div class="headertitle"><div class="title">godot_macros.hpp</div></div>
</div><!--header--> </div><!--header-->
<div class="contents"> <div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef UTILS_GODOT_MACROS_HPP</span></div> <a href="godot__macros_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef UTILS_GODOT_MACROS_HPP</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define UTILS_GODOT_MACROS_HPP</span></div> <div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define UTILS_GODOT_MACROS_HPP</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div> <div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include &quot;godot_cpp/classes/engine.hpp&quot;</span></div> <div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include &quot;godot_cpp/classes/engine.hpp&quot;</span></div>
@ -85,32 +85,32 @@ $(function() {
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#define MACRO_STRING_INNER(_Arg) #_Arg</span></div> <div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#define MACRO_STRING_INNER(_Arg) #_Arg</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#define MACRO_STRING(_Arg) MACRO_STRING_INNER(_Arg)</span></div> <div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#define MACRO_STRING(_Arg) MACRO_STRING_INNER(_Arg)</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div> <div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#define GDPROPERTY(PropName_, PropType_) \</span></div> <div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="godot__macros_8hpp.html#a3dab0009fb317e0fce558e09edd4964c"> 22</a></span><span class="preprocessor">#define GDPROPERTY(PropName_, PropType_) \</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor"> godot::ClassDB::bind_method(godot::D_METHOD(&quot;get_&quot;</span> #PropName_), &amp;CLASSNAME::get_##PropName_); \</div> <div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor"> godot::ClassDB::bind_method(godot::D_METHOD(&quot;get_&quot;</span> #PropName_), &amp;CLASSNAME::get_##PropName_); \</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> godot::ClassDB::bind_method(godot::D_METHOD(&quot;set_&quot; #PropName_, &quot;value&quot;), &amp;CLASSNAME::set_##PropName_); \</div> <div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> godot::ClassDB::bind_method(godot::D_METHOD(&quot;set_&quot; #PropName_, &quot;value&quot;), &amp;CLASSNAME::set_##PropName_); \</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> godot::ClassDB::add_property(MACRO_STRING(CLASSNAME), godot::PropertyInfo(PropType_, #PropName_), &quot;set_&quot; #PropName_, &quot;get_&quot; #PropName_)</div> <div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> godot::ClassDB::add_property(MACRO_STRING(CLASSNAME), godot::PropertyInfo(PropType_, #PropName_), &quot;set_&quot; #PropName_, &quot;get_&quot; #PropName_)</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div> <div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#define GDPROPERTY_HINTED(PropName_, PropType_, ...) \</span></div> <div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="godot__macros_8hpp.html#a9e70408fe612616931e2c251eb149114"> 33</a></span><span class="preprocessor">#define GDPROPERTY_HINTED(PropName_, PropType_, ...) \</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="preprocessor"> godot::ClassDB::bind_method(godot::D_METHOD(&quot;get_&quot;</span> #PropName_), &amp;CLASSNAME::get_##PropName_); \</div> <div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="preprocessor"> godot::ClassDB::bind_method(godot::D_METHOD(&quot;get_&quot;</span> #PropName_), &amp;CLASSNAME::get_##PropName_); \</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> godot::ClassDB::bind_method(godot::D_METHOD(&quot;set_&quot; #PropName_, &quot;value&quot;), &amp;CLASSNAME::set_##PropName_); \</div> <div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> godot::ClassDB::bind_method(godot::D_METHOD(&quot;set_&quot; #PropName_, &quot;value&quot;), &amp;CLASSNAME::set_##PropName_); \</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> godot::ClassDB::add_property(MACRO_STRING(CLASSNAME), godot::PropertyInfo(PropType_, #PropName_, __VA_ARGS__), &quot;set_&quot; #PropName_, &quot;get_&quot; #PropName_)</div> <div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> godot::ClassDB::add_property(MACRO_STRING(CLASSNAME), godot::PropertyInfo(PropType_, #PropName_, __VA_ARGS__), &quot;set_&quot; #PropName_, &quot;get_&quot; #PropName_)</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div> <div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span><span class="preprocessor">#define GDFUNCTION(FnName_) godot::ClassDB::bind_method(godot::D_METHOD(#FnName_), &amp;CLASSNAME::FnName_)</span></div> <div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="godot__macros_8hpp.html#aec4c8284cb9ea77c97a7037176081801"> 43</a></span><span class="preprocessor">#define GDFUNCTION(FnName_) godot::ClassDB::bind_method(godot::D_METHOD(#FnName_), &amp;CLASSNAME::FnName_)</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div> <div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span><span class="preprocessor">#define GDFUNCTION_ARGS(FnName_, ...) godot::ClassDB::bind_method(godot::D_METHOD(#FnName_, __VA_ARGS__), &amp;CLASSNAME::FnName_)</span></div> <div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="godot__macros_8hpp.html#abb5f0f48b26566dab84ff075fdc9fb4e"> 50</a></span><span class="preprocessor">#define GDFUNCTION_ARGS(FnName_, ...) godot::ClassDB::bind_method(godot::D_METHOD(#FnName_, __VA_ARGS__), &amp;CLASSNAME::FnName_)</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div> <div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span><span class="preprocessor">#define GDFUNCTION_STATIC(FnName_) godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#FnName_), &amp;CLASSNAME::_FnName)</span></div> <div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="godot__macros_8hpp.html#ab1d89a5d5f8e83ed25d64195e8e432b6"> 57</a></span><span class="preprocessor">#define GDFUNCTION_STATIC(FnName_) godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#FnName_), &amp;CLASSNAME::_FnName)</span></div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div> <div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span><span class="preprocessor">#define GDFUNCTION_STATIC_ARGS(FnName_, ...) godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#FnName_, __VA_ARGS__), &amp;CLASSNAME::FnName_)</span></div> <div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="godot__macros_8hpp.html#a26ae27fbaa531f900a2e3a2c339975df"> 64</a></span><span class="preprocessor">#define GDFUNCTION_STATIC_ARGS(FnName_, ...) godot::ClassDB::bind_static_method(MACRO_STRING(CLASSNAME), godot::D_METHOD(#FnName_, __VA_ARGS__), &amp;CLASSNAME::FnName_)</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div> <div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span><span class="preprocessor">#define GDSIGNAL(...) godot::ClassDB::add_signal(MACRO_STRING(CLASSNAME), godot::MethodInfo(__VA_ARGS__))</span></div> <div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="godot__macros_8hpp.html#abed0b44fb9b7da904a745cd09219ddea"> 69</a></span><span class="preprocessor">#define GDSIGNAL(...) godot::ClassDB::add_signal(MACRO_STRING(CLASSNAME), godot::MethodInfo(__VA_ARGS__))</span></div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div> <div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span><span class="preprocessor">#define GDRESOURCETYPE(Class_) godot::vformat(&quot;%s/%s:%s&quot;</span>, godot::Variant::OBJECT, godot::PROPERTY_HINT_RESOURCE_TYPE, #Class_)</div> <div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="godot__macros_8hpp.html#ae0818ebba543d3c6e8a61f460509451f"> 76</a></span><span class="preprocessor">#define GDRESOURCETYPE(Class_) godot::vformat(&quot;%s/%s:%s&quot;</span>, godot::Variant::OBJECT, godot::PROPERTY_HINT_RESOURCE_TYPE, #Class_)</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div> <div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span><span class="preprocessor">#define GDEDITORONLY() if(!godot::Engine::get_singleton()-&gt;is_editor_hint()) return;</span></div> <div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="godot__macros_8hpp.html#a36c0da7ac54da4b5a5a9fe754e68eaa1"> 83</a></span><span class="preprocessor">#define GDEDITORONLY() if(!godot::Engine::get_singleton()-&gt;is_editor_hint()) return;</span></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span><span class="preprocessor">#define GDGAMEONLY() if(godot::Engine::get_singleton()-&gt;is_editor_hint()) return;</span></div> <div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="godot__macros_8hpp.html#a33ac9c3bfce05f857cfdd472cb00ca89"> 89</a></span><span class="preprocessor">#define GDGAMEONLY() if(godot::Engine::get_singleton()-&gt;is_editor_hint()) return;</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div> <div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span><span class="preprocessor">#define GDENUM(Name_, ...)\</span></div> <div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="godot__macros_8hpp.html#a069154a04e2e9e1df6cbbec0a0fc8829"> 96</a></span><span class="preprocessor">#define GDENUM(Name_, ...)\</span></div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span><span class="preprocessor">struct Name_ {\</span></div> <div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span><span class="preprocessor">struct Name_ {\</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span><span class="preprocessor"> enum Value {__VA_ARGS__};\</span></div> <div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span><span class="preprocessor"> enum Value {__VA_ARGS__};\</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span><span class="preprocessor"> private:\</span></div> <div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span><span class="preprocessor"> private:\</span></div>

View File

@ -63,4 +63,7 @@ var menudata={children:[
{text:"u",url:"functions_func.html#index_u"}]}, {text:"u",url:"functions_func.html#index_u"}]},
{text:"Variables",url:"functions_vars.html"}]}]}, {text:"Variables",url:"functions_vars.html"}]}]},
{text:"Files",url:"files.html",children:[ {text:"Files",url:"files.html",children:[
{text:"File List",url:"files.html"}]}]} {text:"File List",url:"files.html"},
{text:"File Members",url:"globals.html",children:[
{text:"All",url:"globals.html"},
{text:"Macros",url:"globals_defs.html"}]}]}]}

View File

@ -7,14 +7,26 @@ var searchData=
['gamemode_4',['GameMode',['../classutils_1_1GameMode.html',1,'utils']]], ['gamemode_4',['GameMode',['../classutils_1_1GameMode.html',1,'utils']]],
['gameroot3d_5',['GameRoot3D',['../classutils_1_1GameRoot3D.html',1,'utils']]], ['gameroot3d_5',['GameRoot3D',['../classutils_1_1GameRoot3D.html',1,'utils']]],
['gamestate_6',['GameState',['../classutils_1_1GameState.html',1,'utils']]], ['gamestate_6',['GameState',['../classutils_1_1GameState.html',1,'utils']]],
['get_5fgame_5fmode_7',['get_game_mode',['../classutils_1_1GameRoot3D.html#a896b4e4d3b9465a83a10249dbd559662',1,'utils::GameRoot3D']]], ['gdeditoronly_7',['GDEDITORONLY',['../godot__macros_8hpp.html#a36c0da7ac54da4b5a5a9fe754e68eaa1',1,'godot_macros.hpp']]],
['get_5fgame_5fstate_8',['get_game_state',['../classutils_1_1GameRoot3D.html#a105011a591cf09368958d4be350ed352',1,'utils::GameRoot3D']]], ['gdenum_8',['GDENUM',['../godot__macros_8hpp.html#a069154a04e2e9e1df6cbbec0a0fc8829',1,'godot_macros.hpp']]],
['get_5flast_5fmouse_5fmotion_9',['get_last_mouse_motion',['../classutils_1_1PlayerInput.html#a689cc968b84d6a92c10c541b97e3477e',1,'utils::PlayerInput']]], ['gdfunction_9',['GDFUNCTION',['../godot__macros_8hpp.html#aec4c8284cb9ea77c97a7037176081801',1,'godot_macros.hpp']]],
['get_5flevels_10',['get_levels',['../classutils_1_1GameRoot3D.html#aa9ed453a0b416641dfa5154a0b69c79e',1,'utils::GameRoot3D']]], ['gdfunction_5fargs_10',['GDFUNCTION_ARGS',['../godot__macros_8hpp.html#abb5f0f48b26566dab84ff075fdc9fb4e',1,'godot_macros.hpp']]],
['get_5fplayer_11',['get_player',['../classutils_1_1GameRoot3D.html#a27492f37140fa8af6c6955f2147f5521',1,'utils::GameRoot3D']]], ['gdfunction_5fstatic_11',['GDFUNCTION_STATIC',['../godot__macros_8hpp.html#ab1d89a5d5f8e83ed25d64195e8e432b6',1,'godot_macros.hpp']]],
['get_5fplayer_5fid_12',['get_player_id',['../classutils_1_1IPlayer.html#ad697b5e89246178d99a4c281eaf313af',1,'utils::IPlayer']]], ['gdfunction_5fstatic_5fargs_12',['GDFUNCTION_STATIC_ARGS',['../godot__macros_8hpp.html#a26ae27fbaa531f900a2e3a2c339975df',1,'godot_macros.hpp']]],
['get_5fplayers_13',['get_players',['../classutils_1_1GameRoot3D.html#af176a558f2a3b972c970087c2a1e3d7b',1,'utils::GameRoot3D']]], ['gdgameonly_13',['GDGAMEONLY',['../godot__macros_8hpp.html#a33ac9c3bfce05f857cfdd472cb00ca89',1,'godot_macros.hpp']]],
['get_5fsingleton_14',['get_singleton',['../classutils_1_1GameRoot3D.html#ad1c9387dee7919a8ab5d60b19cba2140',1,'utils::GameRoot3D']]], ['gdproperty_14',['GDPROPERTY',['../godot__macros_8hpp.html#a3dab0009fb317e0fce558e09edd4964c',1,'godot_macros.hpp']]],
['godot_20c_2b_2b_20utilities_15',['Godot C++ Utilities',['../md_README.html',1,'']]], ['gdproperty_5fhinted_15',['GDPROPERTY_HINTED',['../godot__macros_8hpp.html#a9e70408fe612616931e2c251eb149114',1,'godot_macros.hpp']]],
['grab_5fsingleton_16',['grab_singleton',['../classutils_1_1GameRoot3D.html#a0fc164bad77a192ff2209eee18e5104b',1,'utils::GameRoot3D']]] ['gdresourcetype_16',['GDRESOURCETYPE',['../godot__macros_8hpp.html#ae0818ebba543d3c6e8a61f460509451f',1,'godot_macros.hpp']]],
['gdsignal_17',['GDSIGNAL',['../godot__macros_8hpp.html#abed0b44fb9b7da904a745cd09219ddea',1,'godot_macros.hpp']]],
['get_5fgame_5fmode_18',['get_game_mode',['../classutils_1_1GameRoot3D.html#a896b4e4d3b9465a83a10249dbd559662',1,'utils::GameRoot3D']]],
['get_5fgame_5fstate_19',['get_game_state',['../classutils_1_1GameRoot3D.html#a105011a591cf09368958d4be350ed352',1,'utils::GameRoot3D']]],
['get_5flast_5fmouse_5fmotion_20',['get_last_mouse_motion',['../classutils_1_1PlayerInput.html#a689cc968b84d6a92c10c541b97e3477e',1,'utils::PlayerInput']]],
['get_5flevels_21',['get_levels',['../classutils_1_1GameRoot3D.html#aa9ed453a0b416641dfa5154a0b69c79e',1,'utils::GameRoot3D']]],
['get_5fplayer_22',['get_player',['../classutils_1_1GameRoot3D.html#a27492f37140fa8af6c6955f2147f5521',1,'utils::GameRoot3D']]],
['get_5fplayer_5fid_23',['get_player_id',['../classutils_1_1IPlayer.html#ad697b5e89246178d99a4c281eaf313af',1,'utils::IPlayer']]],
['get_5fplayers_24',['get_players',['../classutils_1_1GameRoot3D.html#af176a558f2a3b972c970087c2a1e3d7b',1,'utils::GameRoot3D']]],
['get_5fsingleton_25',['get_singleton',['../classutils_1_1GameRoot3D.html#ad1c9387dee7919a8ab5d60b19cba2140',1,'utils::GameRoot3D']]],
['godot_20c_2b_2b_20utilities_26',['Godot C++ Utilities',['../md_README.html',1,'']]],
['godot_5fmacros_2ehpp_27',['godot_macros.hpp',['../godot__macros_8hpp.html',1,'']]],
['grab_5fsingleton_28',['grab_singleton',['../classutils_1_1GameRoot3D.html#a0fc164bad77a192ff2209eee18e5104b',1,'utils::GameRoot3D']]]
]; ];

View File

@ -1,14 +1,14 @@
var searchData= var searchData=
[ [
['gdeditoronly_0',['GDEDITORONLY',['../godot__macros_8h.html#a36c0da7ac54da4b5a5a9fe754e68eaa1',1,'godot_macros.h']]], ['gdeditoronly_0',['GDEDITORONLY',['../godot__macros_8hpp.html#a36c0da7ac54da4b5a5a9fe754e68eaa1',1,'godot_macros.hpp']]],
['gdenum_1',['GDENUM',['../godot__macros_8h.html#a069154a04e2e9e1df6cbbec0a0fc8829',1,'godot_macros.h']]], ['gdenum_1',['GDENUM',['../godot__macros_8hpp.html#a069154a04e2e9e1df6cbbec0a0fc8829',1,'godot_macros.hpp']]],
['gdfunction_2',['GDFUNCTION',['../godot__macros_8h.html#aec4c8284cb9ea77c97a7037176081801',1,'godot_macros.h']]], ['gdfunction_2',['GDFUNCTION',['../godot__macros_8hpp.html#aec4c8284cb9ea77c97a7037176081801',1,'godot_macros.hpp']]],
['gdfunction_5fargs_3',['GDFUNCTION_ARGS',['../godot__macros_8h.html#abb5f0f48b26566dab84ff075fdc9fb4e',1,'godot_macros.h']]], ['gdfunction_5fargs_3',['GDFUNCTION_ARGS',['../godot__macros_8hpp.html#abb5f0f48b26566dab84ff075fdc9fb4e',1,'godot_macros.hpp']]],
['gdfunction_5fstatic_4',['GDFUNCTION_STATIC',['../godot__macros_8h.html#ab1d89a5d5f8e83ed25d64195e8e432b6',1,'godot_macros.h']]], ['gdfunction_5fstatic_4',['GDFUNCTION_STATIC',['../godot__macros_8hpp.html#ab1d89a5d5f8e83ed25d64195e8e432b6',1,'godot_macros.hpp']]],
['gdfunction_5fstatic_5fargs_5',['GDFUNCTION_STATIC_ARGS',['../godot__macros_8h.html#a26ae27fbaa531f900a2e3a2c339975df',1,'godot_macros.h']]], ['gdfunction_5fstatic_5fargs_5',['GDFUNCTION_STATIC_ARGS',['../godot__macros_8hpp.html#a26ae27fbaa531f900a2e3a2c339975df',1,'godot_macros.hpp']]],
['gdgameonly_6',['GDGAMEONLY',['../godot__macros_8h.html#a33ac9c3bfce05f857cfdd472cb00ca89',1,'godot_macros.h']]], ['gdgameonly_6',['GDGAMEONLY',['../godot__macros_8hpp.html#a33ac9c3bfce05f857cfdd472cb00ca89',1,'godot_macros.hpp']]],
['gdproperty_7',['GDPROPERTY',['../godot__macros_8h.html#a3dab0009fb317e0fce558e09edd4964c',1,'godot_macros.h']]], ['gdproperty_7',['GDPROPERTY',['../godot__macros_8hpp.html#a3dab0009fb317e0fce558e09edd4964c',1,'godot_macros.hpp']]],
['gdproperty_5fhinted_8',['GDPROPERTY_HINTED',['../godot__macros_8h.html#a9e70408fe612616931e2c251eb149114',1,'godot_macros.h']]], ['gdproperty_5fhinted_8',['GDPROPERTY_HINTED',['../godot__macros_8hpp.html#a9e70408fe612616931e2c251eb149114',1,'godot_macros.hpp']]],
['gdresourcetype_9',['GDRESOURCETYPE',['../godot__macros_8h.html#ae0818ebba543d3c6e8a61f460509451f',1,'godot_macros.h']]], ['gdresourcetype_9',['GDRESOURCETYPE',['../godot__macros_8hpp.html#ae0818ebba543d3c6e8a61f460509451f',1,'godot_macros.hpp']]],
['gdsignal_10',['GDSIGNAL',['../godot__macros_8h.html#abed0b44fb9b7da904a745cd09219ddea',1,'godot_macros.h']]] ['gdsignal_10',['GDSIGNAL',['../godot__macros_8hpp.html#abed0b44fb9b7da904a745cd09219ddea',1,'godot_macros.hpp']]]
]; ];

View File

@ -1,4 +1,4 @@
var searchData= var searchData=
[ [
['godot_5fmacros_2eh_0',['godot_macros.h',['../godot__macros_8h.html',1,'']]] ['godot_5fmacros_2ehpp_0',['godot_macros.hpp',['../godot__macros_8hpp.html',1,'']]]
]; ];

View File

@ -2,26 +2,32 @@ var indexSectionsWithContent =
{ {
0: "_acdefghilnprstu", 0: "_acdefghilnprstu",
1: "gilps", 1: "gilps",
2: "_cefghilprstu", 2: "g",
3: "acdfgilnprs", 3: "_cefghilprstu",
4: "g" 4: "acdfgilnprs",
5: "g",
6: "g"
}; };
var indexSectionNames = var indexSectionNames =
{ {
0: "all", 0: "all",
1: "classes", 1: "classes",
2: "functions", 2: "files",
3: "variables", 3: "functions",
4: "pages" 4: "variables",
5: "defines",
6: "pages"
}; };
var indexSectionLabels = var indexSectionLabels =
{ {
0: "All", 0: "All",
1: "Classes", 1: "Classes",
2: "Functions", 2: "Files",
3: "Variables", 3: "Functions",
4: "Pages" 4: "Variables",
5: "Macros",
6: "Pages"
}; };