Skip to content

Commit 8ae5b45

Browse files
authored
Merge pull request #51 from ElunaLuaEngine/master-2025-02-05_18-07
Update Eluna documentation
2 parents 2c9a612 + dbc657f commit 8ae5b45

File tree

10 files changed

+1075
-1
lines changed

10 files changed

+1075
-1
lines changed

Item/GetArmor.html

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
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 Item:GetArmor 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>Item:GetArmor - 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>Item 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("Item:GetArmor");
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="../Item/index.html">Item</a>:<a class="fn" href="../Item/GetArmor.html">GetArmor</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>Returns the base armor of this <a class="mod" href="../Item/index.html">Item</a></p>
91+
92+
93+
<h2 id="synopsis" class='section-header'>
94+
<a href="#synopsis">Synopsis</a>
95+
</h2>
96+
<p>
97+
<code>armor = Item:GetArmor()</code>
98+
</p>
99+
100+
<h2 id="arguments" class='section-header'>
101+
<a href="#arguments">Arguments</a>
102+
</h2>
103+
<p>
104+
None.
105+
</p>
106+
107+
<h2 id="returns" class='section-header'>
108+
<a href="#returns">Returns</a>
109+
</h2>
110+
<p>
111+
<dl>
112+
<dt><code><strong><a href="http://www.lua.org/pil/2.3.html">number</a></strong> armor</code></dt>
113+
<dd class="docblock"><p><em>Valid numbers</em>: integers from 0 to 4,294,967,295.</p></dd>
114+
</dl>
115+
</p>
116+
</div>
117+
118+
</section>
119+
120+
<section id='search' class="content hidden"></section>
121+
122+
<section class="footer"></section>
123+
124+
<div id="help" class="hidden">
125+
<div class="shortcuts">
126+
<h1>Keyboard shortcuts</h1>
127+
<dl>
128+
<dt>?</dt>
129+
<dd>Show this help dialog</dd>
130+
<dt>S</dt>
131+
<dd>Focus the search field</dd>
132+
<dt>&larrb;</dt>
133+
<dd>Move up in search results</dd>
134+
<dt>&rarrb;</dt>
135+
<dd>Move down in search results</dd>
136+
<dt>&#9166;</dt>
137+
<dd>Go to active search result</dd>
138+
</dl>
139+
</div>
140+
<div class="infos">
141+
<h1>Search tricks</h1>
142+
<p>
143+
Prefix searches with a type followed by a colon (e.g.
144+
<code>fn:</code>) to restrict the search to a given type.
145+
</p>
146+
<p>
147+
Accepted types are: <code>fn</code>, <code>mod</code>,
148+
<code>struct</code> (or <code>str</code>), <code>enum</code>,
149+
<code>trait</code>, <code>typedef</code> (or
150+
<code>tdef</code>).
151+
</p>
152+
</div>
153+
</div>
154+
155+
<script>
156+
window.rootPath = "../";
157+
</script>
158+
<script src="../static/jquery.js"></script>
159+
<script src="../static/main.js"></script>
160+
<script src="../static/theme.js"></script>
161+
<script async src="../search-index.js"></script>
162+
<center>Generated on <script src="../date.js"></script></center>
163+
<center>&copy; 2010 - 2024 Eluna Lua Engine</center>
164+
</body>
165+
</html>

Item/GetDamageInfo.html

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
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 Item:GetDamageInfo 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>Item:GetDamageInfo - 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>Item 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("Item:GetDamageInfo");
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="../Item/index.html">Item</a>:<a class="fn" href="../Item/GetDamageInfo.html">GetDamageInfo</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>Returns the damage info of the specified damage slot of this <a class="mod" href="../Item/index.html">Item</a></p>
91+
92+
93+
<h2 id="synopsis" class='section-header'>
94+
<a href="#synopsis">Synopsis</a>
95+
</h2>
96+
<p>
97+
<code>damageType, minDamage, maxDamage = Item:GetDamageInfo( damageSlot )</code>
98+
</p>
99+
100+
<h2 id="arguments" class='section-header'>
101+
<a href="#arguments">Arguments</a>
102+
</h2>
103+
<p>
104+
<dl>
105+
<dt><code><strong><a href="http://www.lua.org/pil/2.3.html">number</a></strong> damageSlot</code></dt>
106+
<dd class="docblock"><p>The damage slot specified (1 or 2). </p><p><em>Valid numbers</em>: integers from 0 to 255.</p></dd>
107+
</dl>
108+
</p>
109+
110+
<h2 id="returns" class='section-header'>
111+
<a href="#returns">Returns</a>
112+
</h2>
113+
<p>
114+
<dl>
115+
<dt><code><strong><a href="http://www.lua.org/pil/2.3.html">number</a></strong> damageType</code></dt>
116+
<dd class="docblock"><p><em>Valid numbers</em>: integers from 0 to 4,294,967,295.</p></dd>
117+
</dl>
118+
<dl>
119+
<dt><code><strong><a href="http://www.lua.org/pil/2.3.html">number</a></strong> minDamage</code></dt>
120+
<dd class="docblock"><p><em>Valid numbers</em>: all decimal numbers.</p></dd>
121+
</dl>
122+
<dl>
123+
<dt><code><strong><a href="http://www.lua.org/pil/2.3.html">number</a></strong> maxDamage</code></dt>
124+
<dd class="docblock"><p><em>Valid numbers</em>: all decimal numbers.</p></dd>
125+
</dl>
126+
</p>
127+
</div>
128+
129+
</section>
130+
131+
<section id='search' class="content hidden"></section>
132+
133+
<section class="footer"></section>
134+
135+
<div id="help" class="hidden">
136+
<div class="shortcuts">
137+
<h1>Keyboard shortcuts</h1>
138+
<dl>
139+
<dt>?</dt>
140+
<dd>Show this help dialog</dd>
141+
<dt>S</dt>
142+
<dd>Focus the search field</dd>
143+
<dt>&larrb;</dt>
144+
<dd>Move up in search results</dd>
145+
<dt>&rarrb;</dt>
146+
<dd>Move down in search results</dd>
147+
<dt>&#9166;</dt>
148+
<dd>Go to active search result</dd>
149+
</dl>
150+
</div>
151+
<div class="infos">
152+
<h1>Search tricks</h1>
153+
<p>
154+
Prefix searches with a type followed by a colon (e.g.
155+
<code>fn:</code>) to restrict the search to a given type.
156+
</p>
157+
<p>
158+
Accepted types are: <code>fn</code>, <code>mod</code>,
159+
<code>struct</code> (or <code>str</code>), <code>enum</code>,
160+
<code>trait</code>, <code>typedef</code> (or
161+
<code>tdef</code>).
162+
</p>
163+
</div>
164+
</div>
165+
166+
<script>
167+
window.rootPath = "../";
168+
</script>
169+
<script src="../static/jquery.js"></script>
170+
<script src="../static/main.js"></script>
171+
<script src="../static/theme.js"></script>
172+
<script async src="../search-index.js"></script>
173+
<center>Generated on <script src="../date.js"></script></center>
174+
<center>&copy; 2010 - 2024 Eluna Lua Engine</center>
175+
</body>
176+
</html>

0 commit comments

Comments
 (0)