Skip to content

Commit 243fd2b

Browse files
authored
Merge pull request #47 from ElunaLuaEngine/master-2024-11-23_18-42
Update Eluna documentation
2 parents 7861be0 + 27c87f9 commit 243fd2b

File tree

5 files changed

+191
-50
lines changed

5 files changed

+191
-50
lines changed

Corpse/GetType.html

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,30 @@ <h1 class='fqn'>
8888

8989
<div class='docblock'>
9090
<p>Returns the [CorpseType] of a <a class="mod" href="../Corpse/index.html">Corpse</a>.</p>
91-
<pre><code>enum CorpseType
92-
{
93-
CORPSE_BONES = 0,
94-
CORPSE_RESURRECTABLE_PVE = 1,
95-
CORPSE_RESURRECTABLE_PVP = 2
96-
};
97-
</code></pre>
91+
<div class="table-container">
92+
<table>
93+
<thead>
94+
<tr>
95+
<th>CorpseType</th>
96+
<th>ID</th>
97+
</tr>
98+
</thead>
99+
<tbody>
100+
<tr>
101+
<td>CORPSE_BONES</td>
102+
<td>0</td>
103+
</tr>
104+
<tr>
105+
<td>CORPSE_RESURRECTABLE_PVE</td>
106+
<td>1</td>
107+
</tr>
108+
<tr>
109+
<td>CORPSE_RESURRECTABLE_PVP</td>
110+
<td>2</td>
111+
</tr>
112+
</tbody>
113+
</table>
114+
</div>
98115

99116

100117
<h2 id="synopsis" class='section-header'>

Map/GetPlayers.html

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,30 @@ <h1 class='fqn'>
8888

8989
<div class='docblock'>
9090
<p>Returns a table with all the current <a class="mod" href="../Player/index.html">Player</a>s in the map</p>
91-
<pre><code>enum TeamId
92-
{
93-
TEAM_ALLIANCE = 0,
94-
TEAM_HORDE = 1,
95-
TEAM_NEUTRAL = 2
96-
};
97-
</code></pre>
91+
<div class="table-container">
92+
<table>
93+
<thead>
94+
<tr>
95+
<th>Team</th>
96+
<th>ID</th>
97+
</tr>
98+
</thead>
99+
<tbody>
100+
<tr>
101+
<td>ALLIANCE</td>
102+
<td>0</td>
103+
</tr>
104+
<tr>
105+
<td>HORDE</td>
106+
<td>1</td>
107+
</tr>
108+
<tr>
109+
<td>NEUTRAL</td>
110+
<td>2</td>
111+
</tr>
112+
</tbody>
113+
</table>
114+
</div>
98115

99116

100117
<h2 id="synopsis" class='section-header'>

Map/SetWeather.html

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,42 @@ <h1 class='fqn'>
8888

8989
<div class='docblock'>
9090
<p>Sets the [Weather] type based on [WeatherType] and grade supplied.</p>
91-
<pre><code>enum WeatherType
92-
{
93-
WEATHER_TYPE_FINE = 0,
94-
WEATHER_TYPE_RAIN = 1,
95-
WEATHER_TYPE_SNOW = 2,
96-
WEATHER_TYPE_STORM = 3,
97-
WEATHER_TYPE_THUNDERS = 86,
98-
WEATHER_TYPE_BLACKRAIN = 90
99-
};
100-
</code></pre>
91+
<div class="table-container">
92+
<table>
93+
<thead>
94+
<tr>
95+
<th>WeatherType</th>
96+
<th>ID</th>
97+
</tr>
98+
</thead>
99+
<tbody>
100+
<tr>
101+
<td>WEATHER_TYPE_FINE</td>
102+
<td>0</td>
103+
</tr>
104+
<tr>
105+
<td>WEATHER_TYPE_RAIN</td>
106+
<td>1</td>
107+
</tr>
108+
<tr>
109+
<td>WEATHER_TYPE_SNOW</td>
110+
<td>2</td>
111+
</tr>
112+
<tr>
113+
<td>WEATHER_TYPE_STORM</td>
114+
<td>3</td>
115+
</tr>
116+
<tr>
117+
<td>WEATHER_TYPE_THUNDERS</td>
118+
<td>86</td>
119+
</tr>
120+
<tr>
121+
<td>WEATHER_TYPE_BLACKRAIN</td>
122+
<td>90</td>
123+
</tr>
124+
</tbody>
125+
</table>
126+
</div>
101127

102128

103129
<h2 id="synopsis" class='section-header'>

Object/GetTypeId.html

Lines changed: 44 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -88,18 +88,50 @@ <h1 class='fqn'>
8888

8989
<div class='docblock'>
9090
<p>Returns the TypeId of the <a class="mod" href="../Object/index.html">Object</a>.</p>
91-
<pre><code>enum TypeID
92-
{
93-
TYPEID_OBJECT = 0,
94-
TYPEID_ITEM = 1,
95-
TYPEID_CONTAINER = 2,
96-
TYPEID_UNIT = 3,
97-
TYPEID_PLAYER = 4,
98-
TYPEID_GAMEOBJECT = 5,
99-
TYPEID_DYNAMICOBJECT = 6,
100-
TYPEID_CORPSE = 7
101-
};
102-
</code></pre>
91+
<div class="table-container">
92+
<table>
93+
<thead>
94+
<tr>
95+
<th>TypeID</th>
96+
<th>ID</th>
97+
</tr>
98+
</thead>
99+
<tbody>
100+
<tr>
101+
<td>TYPEID_OBJECT</td>
102+
<td>0</td>
103+
</tr>
104+
<tr>
105+
<td>TYPEID_ITEM</td>
106+
<td>1</td>
107+
</tr>
108+
<tr>
109+
<td>TYPEID_CONTAINER</td>
110+
<td>2</td>
111+
</tr>
112+
<tr>
113+
<td>TYPEID_UNIT</td>
114+
<td>3</td>
115+
</tr>
116+
<tr>
117+
<td>TYPEID_PLAYER</td>
118+
<td>4</td>
119+
</tr>
120+
<tr>
121+
<td>TYPEID_GAMEOBJECT</td>
122+
<td>5</td>
123+
</tr>
124+
<tr>
125+
<td>TYPEID_DYNAMICOBJECT</td>
126+
<td>6</td>
127+
</tr>
128+
<tr>
129+
<td>TYPEID_CORPSE</td>
130+
<td>7</td>
131+
</tr>
132+
</tbody>
133+
</table>
134+
</div>
103135

104136

105137
<h2 id="synopsis" class='section-header'>

WorldObject/SpawnCreature.html

Lines changed: 63 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,69 @@ <h1 class='fqn'>
8888

8989
<div class='docblock'>
9090
<p>Spawns the creature at specified location.</p>
91-
<pre><code>enum TempSummonType
92-
{
93-
TEMPSUMMON_TIMED_OR_DEAD_DESPAWN = 1, // despawns after a specified time OR when the creature disappears
94-
TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN = 2, // despawns after a specified time OR when the creature dies
95-
TEMPSUMMON_TIMED_DESPAWN = 3, // despawns after a specified time
96-
TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT = 4, // despawns after a specified time after the creature is out of combat
97-
TEMPSUMMON_CORPSE_DESPAWN = 5, // despawns instantly after death
98-
TEMPSUMMON_CORPSE_TIMED_DESPAWN = 6, // despawns after a specified time after death
99-
TEMPSUMMON_DEAD_DESPAWN = 7, // despawns when the creature disappears
100-
TEMPSUMMON_MANUAL_DESPAWN = 8, // despawns when UnSummon() is called
101-
TEMPSUMMON_TIMED_OOC_OR_CORPSE_DESPAWN = 9, // despawns after a specified time (OOC) OR when the creature dies
102-
TEMPSUMMON_TIMED_OOC_OR_DEAD_DESPAWN = 10 // despawns after a specified time (OOC) OR when the creature disappears
103-
};
104-
</code></pre>
91+
<div class="table-container">
92+
<table>
93+
<thead>
94+
<tr>
95+
<th>TempSummonType</th>
96+
<th>ID</th>
97+
<th>Comment</th>
98+
</tr>
99+
</thead>
100+
<tbody>
101+
<tr>
102+
<td>TEMPSUMMON_TIMED_OR_DEAD_DESPAWN</td>
103+
<td>1</td>
104+
<td>despawns after a specified time OR when the creature disappears</td>
105+
</tr>
106+
<tr>
107+
<td>TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN</td>
108+
<td>2</td>
109+
<td>despawns after a specified time OR when the creature dies</td>
110+
</tr>
111+
<tr>
112+
<td>TEMPSUMMON_TIMED_DESPAWN</td>
113+
<td>3</td>
114+
<td>despawns after a specified time</td>
115+
</tr>
116+
<tr>
117+
<td>TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT</td>
118+
<td>4</td>
119+
<td>despawns after a specified time after the creature is out of combat</td>
120+
</tr>
121+
<tr>
122+
<td>TEMPSUMMON_CORPSE_DESPAWN</td>
123+
<td>5</td>
124+
<td>despawns instantly after death</td>
125+
</tr>
126+
<tr>
127+
<td>TEMPSUMMON_CORPSE_TIMED_DESPAWN</td>
128+
<td>6</td>
129+
<td>despawns after a specified time after death</td>
130+
</tr>
131+
<tr>
132+
<td>TEMPSUMMON_DEAD_DESPAWN</td>
133+
<td>7</td>
134+
<td>despawns when the creature disappears</td>
135+
</tr>
136+
<tr>
137+
<td>TEMPSUMMON_MANUAL_DESPAWN</td>
138+
<td>8</td>
139+
<td>despawns when UnSummon() is called</td>
140+
</tr>
141+
<tr>
142+
<td>TEMPSUMMON_TIMED_OOC_OR_CORPSE_DESPAWN</td>
143+
<td>9</td>
144+
<td>despawns after a specified time (OOC) OR when the creature dies</td>
145+
</tr>
146+
<tr>
147+
<td>TEMPSUMMON_TIMED_OOC_OR_DEAD_DESPAWN</td>
148+
<td>10</td>
149+
<td>despawns after a specified time (OOC) OR when the creature disappears</td>
150+
</tr>
151+
</tbody>
152+
</table>
153+
</div>
105154

106155

107156
<h2 id="synopsis" class='section-header'>

0 commit comments

Comments
 (0)