Skip to content

Commit 6d322cb

Browse files
authored
Merge pull request #52 from ElunaLuaEngine/master-2025-02-07_18-24
Update Eluna documentation
2 parents 8ae5b45 + 41b7c82 commit 6d322cb

File tree

5 files changed

+178
-1
lines changed

5 files changed

+178
-1
lines changed

GameObject/SetSpawnedByDefault.html

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta name="description" content="API documentation for the GameObject:SetSpawnedByDefault method in the Eluna engine.">
7+
<meta name="keywords" content="eluna, lua, lua engine, trinitycore, trinity, mangos, cmangos, script, scripting, doc, docs, documentation">
8+
9+
<title>GameObject:SetSpawnedByDefault - Eluna</title>
10+
11+
<link rel="stylesheet" type="text/css" href="../static/main.css">
12+
<link rel="stylesheet" href="../static/highlight.css">
13+
14+
<link rel="shortcut icon" href="../static/favicon.ico">
15+
16+
<script>
17+
// Inline script to set theme before the rest of the document loads
18+
(function() {
19+
const currentTheme = localStorage.getItem('theme');
20+
if (currentTheme) {
21+
document.documentElement.classList.add(currentTheme);
22+
}
23+
})();
24+
</script>
25+
<script src="../static/highlight.min.js"></script>
26+
<script src="../static/lua.min.js"></script>
27+
</head>
28+
<body class="rustdoc">
29+
<section class="sidebar">
30+
<a href='../index.html'><img src='../static/eluna-logo.png' alt='Eluna Logo' width='100'></a>
31+
<div class="block">
32+
33+
<h2>GameObject Methods</h2>
34+
<script src="sidebar.js"></script>
35+
<script>
36+
// Highlight current method by adding "current" class to it
37+
var element = document.getElementById("GameObject:SetSpawnedByDefault");
38+
if (element) {
39+
var classname = "current";
40+
arr = element.className.split(" ");
41+
if (arr.indexOf(classname) == -1) {
42+
element.className += " " + classname;
43+
}
44+
}
45+
</script>
46+
47+
</div>
48+
</section>
49+
50+
<nav class="sub">
51+
<form class="search-form js-only">
52+
<input class="search-input" name="search"
53+
autocomplete="off"
54+
placeholder="Click or press 'S' to search..."
55+
type="search">
56+
57+
<div class="toggle-container" id="themeToggle">
58+
<svg class="sun-icon" xmlns="http://www.w3.org/2000/svg">
59+
<circle cx="12" cy="12" r="5"></circle>
60+
<line x1="12" y1="1" x2="12" y2="3"></line>
61+
<line x1="12" y1="21" x2="12" y2="23"></line>
62+
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
63+
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
64+
<line x1="1" y1="12" x2="3" y2="12"></line>
65+
<line x1="21" y1="12" x2="23" y2="12"></line>
66+
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
67+
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
68+
</svg>
69+
<svg class="moon-icon" xmlns="http://www.w3.org/2000/svg">
70+
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
71+
</svg>
72+
</div>
73+
</form>
74+
</nav>
75+
76+
<section id='main' class="content mod">
77+
<h1 class='fqn'>
78+
Method
79+
<a class="mod" href="../GameObject/index.html">GameObject</a>:<a class="fn" href="../GameObject/SetSpawnedByDefault.html">SetSpawnedByDefault</a>
80+
<span class='out-of-band'>
81+
<span id='render-detail'>
82+
<a id="collapse-all" href="#">[-]</a>
83+
<a id="expand-all" href="#">[+]</a>
84+
</span>
85+
</span>
86+
</h1>
87+
88+
89+
<div class='docblock'>
90+
<p>Sets whether or not the <a class="mod" href="../GameObject/index.html">GameObject</a> will be spawned by default</p>
91+
<p>Primarily used for temporary spawns.</p>
92+
93+
94+
<h2 id="synopsis" class='section-header'>
95+
<a href="#synopsis">Synopsis</a>
96+
</h2>
97+
<p>
98+
<code>GameObject:SetSpawnedByDefault( spawn )</code>
99+
</p>
100+
101+
<h2 id="arguments" class='section-header'>
102+
<a href="#arguments">Arguments</a>
103+
</h2>
104+
<p>
105+
<dl>
106+
<dt><code><strong><a href="http://www.lua.org/pil/2.2.html">boolean</a></strong> spawn (true)</code></dt>
107+
<dd class="docblock"><p>If false, it will prevent the <a class="mod" href="../GameObject/index.html">GameObject</a> from respawning by default. </p></dd>
108+
</dl>
109+
</p>
110+
111+
<h2 id="returns" class='section-header'>
112+
<a href="#returns">Returns</a>
113+
</h2>
114+
<p>
115+
Nothing.
116+
</p>
117+
</div>
118+
119+
</section>
120+
121+
<section id='search' class="content hidden"></section>
122+
123+
<section class="footer"></section>
124+
125+
<div id="help" class="hidden">
126+
<div class="shortcuts">
127+
<h1>Keyboard shortcuts</h1>
128+
<dl>
129+
<dt>?</dt>
130+
<dd>Show this help dialog</dd>
131+
<dt>S</dt>
132+
<dd>Focus the search field</dd>
133+
<dt>&larrb;</dt>
134+
<dd>Move up in search results</dd>
135+
<dt>&rarrb;</dt>
136+
<dd>Move down in search results</dd>
137+
<dt>&#9166;</dt>
138+
<dd>Go to active search result</dd>
139+
</dl>
140+
</div>
141+
<div class="infos">
142+
<h1>Search tricks</h1>
143+
<p>
144+
Prefix searches with a type followed by a colon (e.g.
145+
<code>fn:</code>) to restrict the search to a given type.
146+
</p>
147+
<p>
148+
Accepted types are: <code>fn</code>, <code>mod</code>,
149+
<code>struct</code> (or <code>str</code>), <code>enum</code>,
150+
<code>trait</code>, <code>typedef</code> (or
151+
<code>tdef</code>).
152+
</p>
153+
</div>
154+
</div>
155+
156+
<script>
157+
window.rootPath = "../";
158+
</script>
159+
<script src="../static/jquery.js"></script>
160+
<script src="../static/main.js"></script>
161+
<script src="../static/theme.js"></script>
162+
<script async src="../search-index.js"></script>
163+
<center>Generated on <script src="../date.js"></script></center>
164+
<center>&copy; 2010 - 2024 Eluna Lua Engine</center>
165+
</body>
166+
</html>

GameObject/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,15 @@ <h2 id='methods' class='section-header'><a href="#methods">Methods</a></h2>
241241
<p>Sets the respawn or despawn time for the gameobject.</p>
242242
</td>
243243
</tr>
244+
<tr>
245+
<td>
246+
<a class='stability Stable' title='Documented'></a>
247+
<a class='fn' href='SetSpawnedByDefault.html'>SetSpawnedByDefault</a>
248+
</td>
249+
<td class='docblock short'>
250+
<p>Sets whether or not the <a class="mod" href="../GameObject/index.html">GameObject</a> will be spawned by default</p>
251+
</td>
252+
</tr>
244253
<tr>
245254
<td>
246255
<a class='stability Stable' title='Documented'></a>

GameObject/sidebar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ document.write(`
1717
<a id="GameObject:SetGoState" class="fn" href="../GameObject/SetGoState.html">SetGoState</a>
1818
<a id="GameObject:SetLootState" class="fn" href="../GameObject/SetLootState.html">SetLootState</a>
1919
<a id="GameObject:SetRespawnTime" class="fn" href="../GameObject/SetRespawnTime.html">SetRespawnTime</a>
20+
<a id="GameObject:SetSpawnedByDefault" class="fn" href="../GameObject/SetSpawnedByDefault.html">SetSpawnedByDefault</a>
2021
<a id="GameObject:UseDoorOrButton" class="fn" href="../GameObject/UseDoorOrButton.html">UseDoorOrButton</a>
2122
`);

date.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
document.write("05/02/2025");
1+
document.write("07/02/2025");

search-index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)