Skip to content

Commit e32b35e

Browse files
committed
update to 1.0.9
1 parent 256c79e commit e32b35e

40 files changed

+934
-93
lines changed

1 modules/Effects.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html>
44
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
55
<head>
6-
<title>TombEngine 1.0.8 Lua API</title>
6+
<title>TombEngine 1.0.9 Lua API</title>
77
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
88
</head>
99
<body>
@@ -64,6 +64,7 @@ <h2>3 Primitive Classes</h2>
6464
<ul class="nowrap">
6565
<li> <a href="../3 primitive classes/Color.html">Color</a></li>
6666
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
67+
<li> <a href="../3 primitive classes/Vec2.html">Vec2</a></li>
6768
<li> <a href="../3 primitive classes/Vec3.html">Vec3</a></li>
6869
</ul>
6970
<h2>4 Enums</h2>
@@ -72,6 +73,8 @@ <h2>4 Enums</h2>
7273
<li> <a href="../4 enums/Effects.EffectID.html">Effects.EffectID</a></li>
7374
<li> <a href="../4 enums/Misc.ActionID.html">Misc.ActionID</a></li>
7475
<li> <a href="../4 enums/Misc.CameraType.html">Misc.CameraType</a></li>
76+
<li> <a href="../4 enums/Misc.LogLevel.html">Misc.LogLevel</a></li>
77+
<li> <a href="../4 enums/Misc.LevelLog.html">Misc.LevelLog</a></li>
7578
<li> <a href="../4 enums/Objects.ObjID.html">Objects.ObjID</a></li>
7679
<li> <a href="../4 enums/Objects.RoomFlagID.html">Objects.RoomFlagID</a></li>
7780
<li> <a href="../4 enums/Objects.RoomReverb.html">Objects.RoomReverb</a></li>
@@ -520,7 +523,7 @@ <h3>Parameters:</h3>
520523
</div> <!-- id="main" -->
521524
<div id="about">
522525
<i>generated by <a href="https://github.com/hispidence/TEN-LDoc">TEN-LDoc</a> (a fork of <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a>)</i>
523-
<i style="float:right;">Last updated 2023-03-31 20:44:31 </i>
526+
<i style="float:right;">Last updated 2023-05-31 21:39:18 </i>
524527
</div> <!-- id="about" -->
525528
</div> <!-- id="container" -->
526529
</body>

1 modules/Flow.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html>
44
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
55
<head>
6-
<title>TombEngine 1.0.8 Lua API</title>
6+
<title>TombEngine 1.0.9 Lua API</title>
77
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
88
</head>
99
<body>
@@ -64,6 +64,7 @@ <h2>3 Primitive Classes</h2>
6464
<ul class="nowrap">
6565
<li> <a href="../3 primitive classes/Color.html">Color</a></li>
6666
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
67+
<li> <a href="../3 primitive classes/Vec2.html">Vec2</a></li>
6768
<li> <a href="../3 primitive classes/Vec3.html">Vec3</a></li>
6869
</ul>
6970
<h2>4 Enums</h2>
@@ -72,6 +73,8 @@ <h2>4 Enums</h2>
7273
<li> <a href="../4 enums/Effects.EffectID.html">Effects.EffectID</a></li>
7374
<li> <a href="../4 enums/Misc.ActionID.html">Misc.ActionID</a></li>
7475
<li> <a href="../4 enums/Misc.CameraType.html">Misc.CameraType</a></li>
76+
<li> <a href="../4 enums/Misc.LogLevel.html">Misc.LogLevel</a></li>
77+
<li> <a href="../4 enums/Misc.LevelLog.html">Misc.LevelLog</a></li>
7578
<li> <a href="../4 enums/Objects.ObjID.html">Objects.ObjID</a></li>
7679
<li> <a href="../4 enums/Objects.RoomFlagID.html">Objects.RoomFlagID</a></li>
7780
<li> <a href="../4 enums/Objects.RoomReverb.html">Objects.RoomReverb</a></li>
@@ -667,7 +670,7 @@ <h3>Parameters:</h3>
667670
</div> <!-- id="main" -->
668671
<div id="about">
669672
<i>generated by <a href="https://github.com/hispidence/TEN-LDoc">TEN-LDoc</a> (a fork of <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a>)</i>
670-
<i style="float:right;">Last updated 2023-03-31 20:44:31 </i>
673+
<i style="float:right;">Last updated 2023-05-31 21:39:18 </i>
671674
</div> <!-- id="about" -->
672675
</div> <!-- id="container" -->
673676
</body>

1 modules/Inventory.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html>
44
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
55
<head>
6-
<title>TombEngine 1.0.8 Lua API</title>
6+
<title>TombEngine 1.0.9 Lua API</title>
77
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
88
</head>
99
<body>
@@ -64,6 +64,7 @@ <h2>3 Primitive Classes</h2>
6464
<ul class="nowrap">
6565
<li> <a href="../3 primitive classes/Color.html">Color</a></li>
6666
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
67+
<li> <a href="../3 primitive classes/Vec2.html">Vec2</a></li>
6768
<li> <a href="../3 primitive classes/Vec3.html">Vec3</a></li>
6869
</ul>
6970
<h2>4 Enums</h2>
@@ -72,6 +73,8 @@ <h2>4 Enums</h2>
7273
<li> <a href="../4 enums/Effects.EffectID.html">Effects.EffectID</a></li>
7374
<li> <a href="../4 enums/Misc.ActionID.html">Misc.ActionID</a></li>
7475
<li> <a href="../4 enums/Misc.CameraType.html">Misc.CameraType</a></li>
76+
<li> <a href="../4 enums/Misc.LogLevel.html">Misc.LogLevel</a></li>
77+
<li> <a href="../4 enums/Misc.LevelLog.html">Misc.LevelLog</a></li>
7578
<li> <a href="../4 enums/Objects.ObjID.html">Objects.ObjID</a></li>
7679
<li> <a href="../4 enums/Objects.RoomFlagID.html">Objects.RoomFlagID</a></li>
7780
<li> <a href="../4 enums/Objects.RoomReverb.html">Objects.RoomReverb</a></li>
@@ -243,7 +246,7 @@ <h3>Parameters:</h3>
243246
</div> <!-- id="main" -->
244247
<div id="about">
245248
<i>generated by <a href="https://github.com/hispidence/TEN-LDoc">TEN-LDoc</a> (a fork of <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a>)</i>
246-
<i style="float:right;">Last updated 2023-03-31 20:44:31 </i>
249+
<i style="float:right;">Last updated 2023-05-31 21:39:18 </i>
247250
</div> <!-- id="about" -->
248251
</div> <!-- id="container" -->
249252
</body>

1 modules/Logic.html

Lines changed: 46 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html>
44
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
55
<head>
6-
<title>TombEngine 1.0.8 Lua API</title>
6+
<title>TombEngine 1.0.9 Lua API</title>
77
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
88
</head>
99
<body>
@@ -64,6 +64,7 @@ <h2>3 Primitive Classes</h2>
6464
<ul class="nowrap">
6565
<li> <a href="../3 primitive classes/Color.html">Color</a></li>
6666
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
67+
<li> <a href="../3 primitive classes/Vec2.html">Vec2</a></li>
6768
<li> <a href="../3 primitive classes/Vec3.html">Vec3</a></li>
6869
</ul>
6970
<h2>4 Enums</h2>
@@ -72,6 +73,8 @@ <h2>4 Enums</h2>
7273
<li> <a href="../4 enums/Effects.EffectID.html">Effects.EffectID</a></li>
7374
<li> <a href="../4 enums/Misc.ActionID.html">Misc.ActionID</a></li>
7475
<li> <a href="../4 enums/Misc.CameraType.html">Misc.CameraType</a></li>
76+
<li> <a href="../4 enums/Misc.LogLevel.html">Misc.LogLevel</a></li>
77+
<li> <a href="../4 enums/Misc.LevelLog.html">Misc.LevelLog</a></li>
7578
<li> <a href="../4 enums/Objects.ObjID.html">Objects.ObjID</a></li>
7679
<li> <a href="../4 enums/Objects.RoomFlagID.html">Objects.RoomFlagID</a></li>
7780
<li> <a href="../4 enums/Objects.RoomReverb.html">Objects.RoomReverb</a></li>
@@ -141,12 +144,31 @@ <h2 class="section-header "><a name="Functions"></a>Functions</h2>
141144
<dd>
142145
Register a function as a callback.
143146

144-
<p>Possible values for CallbackPoint:</p>
145-
<pre class="example">PRECONTROLPHASE <span class="comment">-- will be called immediately before OnControlPhase
147+
<p>This is intended for module/library developers who want their modules to do
148+
stuff during level start/load/end/save/control phase, but don't want the level
149+
designer to add calls to <code>OnStart</code>, <code>OnLoad</code>, etc. in their level script.</p>
150+
151+
<p>Possible values for CallbackPoint:</p>
152+
<pre class="example"><span class="comment">-- These take functions which accept no arguments
153+
</span>PRESTART <span class="comment">-- will be called immediately before OnStart
154+
</span>POSTSTART <span class="comment">-- will be called immediately after OnStart
155+
</span>
156+
PRESAVE <span class="comment">-- will be called immediately before OnSave
157+
</span>POSTSAVE <span class="comment">-- will be called immediately after OnSave
158+
</span>
159+
PRELOAD <span class="comment">-- will be called immediately before OnLoad
160+
</span>POSTLOAD <span class="comment">-- will be called immediately after OnLoad
161+
</span>
162+
<span class="comment">-- These take a LevelEndReason arg, like OnEnd
163+
</span>PREEND <span class="comment">-- will be called immediately before OnEnd
164+
</span>POSTEND <span class="comment">-- will be called immediately after OnEnd
165+
</span>
166+
<span class="comment">-- These take functions which accepts a deltaTime argument
167+
</span>PRECONTROLPHASE <span class="comment">-- will be called immediately before OnControlPhase
146168
</span>POSTCONTROLPHASE <span class="comment">-- will be called immediately after OnControlPhase
147169
</span></pre>
148170
<p>The order in which two functions with the same CallbackPoint are called is undefined.
149-
i.e. if you register <code>MyFunc</code> and <code>MyFunc2</code> with <code>PRECONTROLPHASE</code>, both will be called before <code>OnControlPhase</code>, but there is no guarantee whether <code>MyFunc</code> will be called before <code>MyFunc2</code>, or vice-versa.</p>
171+
i.e. if you register <code>MyFunc</code> and <code>MyFunc2</code> with <code>PRECONTROLPHASE</code>, both will be called before <code>OnControlPhase</code>, but there is no guarantee that <code>MyFunc</code> will be called before <code>MyFunc2</code>, or vice-versa.</p>
150172

151173
<p>Any returned value will be discarded.</p>
152174

@@ -159,7 +181,7 @@ <h3>Parameters:</h3>
159181
</li>
160182
<li><span class="parameter">func</span>
161183
<span class="types"><span class="type">function</span></span>
162-
The function to be called (must be in the LevelFuncs hierarchy). Will receive, as an argument, the time in seconds since the last frame.
184+
The function to be called (must be in the <a href="../1 modules/Logic.html#LevelFuncs">LevelFuncs</a> hierarchy). Will receive, as an argument, the time in seconds since the last frame.
163185
</li>
164186
</ul>
165187

@@ -354,7 +376,24 @@ <h3>Fields:</h3>
354376
</li>
355377
<li><span class="parameter">OnEnd</span>
356378
<span class="types"><span class="type">function</span></span>
357-
Will be called when leaving a level. This includes finishing it, exiting to the menu, or loading a save in a different level.
379+
380+
<p>(EndReason) Will be called when leaving a level. This includes finishing it, exiting to the menu, or loading a save in a different level. It can take an <code>EndReason</code> arg:</p>
381+
382+
<pre><code>EXITTOTITLE
383+
LEVELCOMPLETE
384+
LOADGAME
385+
DEATH
386+
OTHER
387+
</code></pre>
388+
389+
<p>For example:</p>
390+
<pre><code>LevelFuncs.OnEnd = function(reason)
391+
if(reason == TEN.Logic.EndReason.DEATH) then
392+
print("death")
393+
end
394+
end
395+
</code></pre>
396+
358397
</li>
359398
</ul>
360399

@@ -370,7 +409,7 @@ <h3>Fields:</h3>
370409
</div> <!-- id="main" -->
371410
<div id="about">
372411
<i>generated by <a href="https://github.com/hispidence/TEN-LDoc">TEN-LDoc</a> (a fork of <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a>)</i>
373-
<i style="float:right;">Last updated 2023-03-31 20:44:31 </i>
412+
<i style="float:right;">Last updated 2023-05-31 21:39:18 </i>
374413
</div> <!-- id="about" -->
375414
</div> <!-- id="container" -->
376415
</body>

1 modules/Misc.html

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html>
44
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
55
<head>
6-
<title>TombEngine 1.0.8 Lua API</title>
6+
<title>TombEngine 1.0.9 Lua API</title>
77
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
88
</head>
99
<body>
@@ -64,6 +64,7 @@ <h2>3 Primitive Classes</h2>
6464
<ul class="nowrap">
6565
<li> <a href="../3 primitive classes/Color.html">Color</a></li>
6666
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
67+
<li> <a href="../3 primitive classes/Vec2.html">Vec2</a></li>
6768
<li> <a href="../3 primitive classes/Vec3.html">Vec3</a></li>
6869
</ul>
6970
<h2>4 Enums</h2>
@@ -72,6 +73,8 @@ <h2>4 Enums</h2>
7273
<li> <a href="../4 enums/Effects.EffectID.html">Effects.EffectID</a></li>
7374
<li> <a href="../4 enums/Misc.ActionID.html">Misc.ActionID</a></li>
7475
<li> <a href="../4 enums/Misc.CameraType.html">Misc.CameraType</a></li>
76+
<li> <a href="../4 enums/Misc.LogLevel.html">Misc.LogLevel</a></li>
77+
<li> <a href="../4 enums/Misc.LevelLog.html">Misc.LevelLog</a></li>
7578
<li> <a href="../4 enums/Objects.ObjID.html">Objects.ObjID</a></li>
7679
<li> <a href="../4 enums/Objects.RoomFlagID.html">Objects.RoomFlagID</a></li>
7780
<li> <a href="../4 enums/Objects.RoomReverb.html">Objects.RoomReverb</a></li>
@@ -176,6 +179,10 @@ <h2><a href="#Functions">Functions</a></h2>
176179
<td class="summary">Reset object camera back to Lara and deactivate object camera.</td>
177180
</tr>
178181
<tr>
182+
<td class="name" ><a href="#PrintLog">PrintLog(message, logLevel[, allowSpam])</a></td>
183+
<td class="summary">Write messages within the Log file</td>
184+
</tr>
185+
<tr>
179186
<td class="name" ><a href="#Vibrate">Vibrate(strength, time)</a></td>
180187
<td class="summary">Vibrate gamepad, if possible.</td>
181188
</tr>
@@ -741,6 +748,50 @@ <h3>Returns:</h3>
741748

742749

743750

751+
</dd>
752+
<dt>
753+
<a name = "PrintLog"></a>
754+
<strong>PrintLog(message, logLevel[, allowSpam])</strong>
755+
</dt>
756+
<dd>
757+
Write messages within the Log file
758+
759+
<p>For native Lua handling of errors, see the official Lua website:</p>
760+
761+
<p><a href="https://www.lua.org/pil/8.3.html">Error management</a></p>
762+
763+
<p><a href="https://www.lua.org/manual/5.4/manual.html#pdf-debug.traceback">debug.traceback</a></p>
764+
765+
766+
<h3>Parameters:</h3>
767+
<ul>
768+
<li><span class="parameter">message</span>
769+
<span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span>
770+
to be displayed within the Log
771+
</li>
772+
<li><span class="parameter">logLevel</span>
773+
<span class="types"><a class="type" href="../4 enums/Misc.LogLevel.html#">LogLevel</a></span>
774+
log level to be displayed
775+
</li>
776+
<li><span class="parameter">allowSpam</span>
777+
<span class="types"><span class="type">bool</span></span>
778+
true allows spamming of the message
779+
(<em>optional</em>)
780+
</li>
781+
</ul>
782+
783+
784+
785+
786+
<h3>Usage:</h3>
787+
<ul>
788+
<pre class="example">PrintLog(<span class="string">'test info log'</span>, LogLevel.INFO)
789+
PrintLog(<span class="string">'test warning log'</span>, LogLevel.WARNING)
790+
PrintLog(<span class="string">'test error log'</span>, LogLevel.ERROR)
791+
<span class="comment">-- spammed message
792+
</span>PrintLog(<span class="string">'test spam log'</span>, LogLevel.INFO, <span class="keyword">true</span>) </pre>
793+
</ul>
794+
744795
</dd>
745796
<dt>
746797
<a name = "Vibrate"></a>
@@ -865,7 +916,7 @@ <h3>Parameters:</h3>
865916
</div> <!-- id="main" -->
866917
<div id="about">
867918
<i>generated by <a href="https://github.com/hispidence/TEN-LDoc">TEN-LDoc</a> (a fork of <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a>)</i>
868-
<i style="float:right;">Last updated 2023-03-31 20:44:31 </i>
919+
<i style="float:right;">Last updated 2023-05-31 21:39:18 </i>
869920
</div> <!-- id="about" -->
870921
</div> <!-- id="container" -->
871922
</body>

1 modules/Objects.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html>
44
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
55
<head>
6-
<title>TombEngine 1.0.8 Lua API</title>
6+
<title>TombEngine 1.0.9 Lua API</title>
77
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
88
</head>
99
<body>
@@ -64,6 +64,7 @@ <h2>3 Primitive Classes</h2>
6464
<ul class="nowrap">
6565
<li> <a href="../3 primitive classes/Color.html">Color</a></li>
6666
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
67+
<li> <a href="../3 primitive classes/Vec2.html">Vec2</a></li>
6768
<li> <a href="../3 primitive classes/Vec3.html">Vec3</a></li>
6869
</ul>
6970
<h2>4 Enums</h2>
@@ -72,6 +73,8 @@ <h2>4 Enums</h2>
7273
<li> <a href="../4 enums/Effects.EffectID.html">Effects.EffectID</a></li>
7374
<li> <a href="../4 enums/Misc.ActionID.html">Misc.ActionID</a></li>
7475
<li> <a href="../4 enums/Misc.CameraType.html">Misc.CameraType</a></li>
76+
<li> <a href="../4 enums/Misc.LogLevel.html">Misc.LogLevel</a></li>
77+
<li> <a href="../4 enums/Misc.LevelLog.html">Misc.LevelLog</a></li>
7578
<li> <a href="../4 enums/Objects.ObjID.html">Objects.ObjID</a></li>
7679
<li> <a href="../4 enums/Objects.RoomFlagID.html">Objects.RoomFlagID</a></li>
7780
<li> <a href="../4 enums/Objects.RoomReverb.html">Objects.RoomReverb</a></li>
@@ -463,7 +466,7 @@ <h3>Returns:</h3>
463466
</div> <!-- id="main" -->
464467
<div id="about">
465468
<i>generated by <a href="https://github.com/hispidence/TEN-LDoc">TEN-LDoc</a> (a fork of <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a>)</i>
466-
<i style="float:right;">Last updated 2023-03-31 20:44:31 </i>
469+
<i style="float:right;">Last updated 2023-05-31 21:39:18 </i>
467470
</div> <!-- id="about" -->
468471
</div> <!-- id="container" -->
469472
</body>

0 commit comments

Comments
 (0)