Refactor scripting documentation and flow data types to use fields instead of getters and setters (#1609)

* Initial commit

* Minor changes

* Rename Flow.Starfield to Flow.StarField

* Added cross-referencing, fixed some descriptions

* Start page LDoc cleanup

* Proofread sound module documentation

* Fixed Vec2 docs

* Update FlowLevel.cpp

* Fixed incorrect tag

* Update CHANGELOG.md

* Allow to refresh starfield in runtime

* Update weather.cpp

* Dynamically change amount of stars

* Update CHANGELOG.md

* Update CHANGELOG.md

* Remove brackets in room class documentation

* Added operators for Rotation class

* Rephrase a little

* Minor nitpicks

---------

Co-authored-by: Sezz <sezzary@outlook.com>
This commit is contained in:
Lwmte 2025-03-12 01:34:48 +03:00 committed by GitHub
parent f01ad441d3
commit 3046f5f4a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
87 changed files with 840 additions and 1326 deletions

View file

@ -34,7 +34,6 @@ TombEngine releases are located in this repository (alongside with Tomb Editor):
* Added TR4 Statue Plinth. * Added TR4 Statue Plinth.
### Lua API changes ### Lua API changes
* Added Collision.Probe class for basic room collision detection. * Added Collision.Probe class for basic room collision detection.
* Added advanced particle emitter allowing animations and other effects. * Added advanced particle emitter allowing animations and other effects.
* Added diary module. * Added diary module.
@ -46,11 +45,13 @@ TombEngine releases are located in this repository (alongside with Tomb Editor):
* Added Effects.EmitStreamer() function to emit streamers. * Added Effects.EmitStreamer() function to emit streamers.
* Added Moveable:GetScale() and Movebale:SetScale() methods to set visible scale of moveables. * Added Moveable:GetScale() and Movebale:SetScale() methods to set visible scale of moveables.
* Added Rotation:Lerp() function to allow linear interpolation between rotations. * Added Rotation:Lerp() function to allow linear interpolation between rotations.
* Added ability to perform additive and subtractive operations on Rotation class and compare one Rotation to another.
* Added various Translate() methods to Vec2 and Vec3 script objects. * Added various Translate() methods to Vec2 and Vec3 script objects.
* Added alpha transparency functionality for statics and moveables to be used with SetColor() method. * Added alpha transparency functionality for statics and moveables to be used with SetColor() method.
* Added extra arguments for sprite object slots and starting rotation value for EmitParticle function. * Added extra arguments for sprite object slots and starting rotation value for EmitParticle function.
* Added ability to save Flow.Level fields such as fog or horizon to a savegame. * Added ability to dynamically change Flow.Level fields such as fog, starfield or horizon, and save them to a savegame.
* Added pickup count to Flow.Statistics class. * Added pickup count to Flow.Statistics class.
* Changed Flow.StarField and Flow.LensFlare primitive types to use parameters instead of getters and setters.
* Fixed medipack level count in Flow.Statistics class. * Fixed medipack level count in Flow.Statistics class.
## [Version 1.7.1](https://github.com/TombEngine/TombEditorReleases/releases/tag/v1.7.4) - 2025-04-01 ## [Version 1.7.1](https://github.com/TombEngine/TombEditorReleases/releases/tag/v1.7.4) - 2025-04-01

View file

@ -12,27 +12,27 @@ new_type("luautil", "5 Lua utility modules", true)
not_luadoc = true not_luadoc = true
local version = "1.7.2 (Developer)" local version = "1.8"
project = "&nbsp;TombEngine" project = "&nbsp;TombEngine"
title = "TombEngine " .. version .. " Lua API" title = "TombEngine " .. version .. " Lua API"
description = "TombEngine " .. version .. " scripting interface" description = "TombEngine " .. version .. " scripting interface"
full_description = [[Welcome to the TombEngine scripting API. This is a work in progress and some information might be wrong or outdated. Please also note that this is primarily a reference document, not a tutorial, so expect descriptions to be fairly sparse. full_description = [[Welcome to the TombEngine scripting API.
Note that this is primarily a reference document, not a tutorial, so expect descriptions to be fairly sparse.
At the time of writing, there is a tutorial describing the basics of Lua, as well as a number of example scripts, on <a href="https://www.tombengine.com">the TombEngine website</a>. At the time of writing, there is a tutorial describing the basics of Lua, as well as a number of example scripts, on <a href="https://www.tombengine.com">the TombEngine website</a>.
####Module Hierarchy (boring but important)
Other than the "special tables" (GameVars, LevelVars and LevelFuncs), every module described herein is held in a master table called TEN. ####Module Hierarchy
Other than the "special tables" (`GameVars`, `LevelVars` and `LevelFuncs`), every module described herein is held in a master table called TEN.
For convenience, these modules and classes are automatically put in the global table. For example, you can call GetMoveableByName either of these two ways: For convenience, these modules and classes are automatically put in the global table. For example, you can call GetMoveableByName either of these two ways:
local door = TEN.Objects.GetMoveableByName("door_type4_14") local door = TEN.Objects.GetMoveableByName("door_type4_14")
local door = GetMoveableByName("door_type4_14") local door = GetMoveableByName("door_type4_14")
####Always check logs/TENLog.txt ####Always check logs/TENLog.txt
If you are scripting levels, TombEngine will often kick you back to the title screen, even if `errorMode` (see Flow.Settings) is set to `ErrorMode.WARN` or `ErrorMode.SILENT`. If you are scripting levels, TombEngine will often kick you back to the title screen, even if `errorMode` (see @{Flow.Settings}) is set to `ErrorMode.WARN` or `ErrorMode.SILENT`.
This might get annoying, but it's on purpose. If your Lua script contains a syntax error (e.g. you're missing `end` at the end of a function), the Lua interpreter will not be able to continue running the script. If it tried to keep running, you'd probably see some pretty strange behaviour, and would possibly get a crash regardless. This might get annoying, but it's on purpose. If your Lua script contains a syntax error (e.g. you're missing `end` at the end of a function), the Lua interpreter will not be able to continue running the script. If it tried to keep running, you'd probably see some pretty strange behaviour, and would possibly get a crash regardless. If this happens, check __logs/TENLog.txt__ and look for an error message with the word "unrecoverable".
If this happens, check __logs/TENLog.txt__ and look for an error message with the word "unrecoverable". Happy building!
Enjoy.
\- _squidshire and the TombEngine development team._ \- _squidshire and the TombEngine development team._
]] ]]

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>
@ -124,40 +124,40 @@
<h2><a href="#Functions">Functions</a></h2> <h2><a href="#Functions">Functions</a></h2>
<table class="function_list"> <table class="function_list">
<tr> <tr>
<td class="name" ><a href="#PlayAudioTrack">PlayAudioTrack(name, type)</a></td> <td class="name" ><a href="#PlayAudioTrack">PlayAudioTrack(filename, type)</a></td>
<td class="summary">Play an audio track</td> <td class="summary">Play an audio track.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#SetAmbientTrack">SetAmbientTrack(name, fromStart)</a></td> <td class="name" ><a href="#SetAmbientTrack">SetAmbientTrack(name, fromStart)</a></td>
<td class="summary">Set and play an ambient track</td> <td class="summary">Set and play an ambient track.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#StopAudioTracks">StopAudioTracks()</a></td> <td class="name" ><a href="#StopAudioTracks">StopAudioTracks()</a></td>
<td class="summary">Stop any audio tracks currently playing</td> <td class="summary">Stop any audio tracks currently playing.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#StopAudioTrack">StopAudioTrack(type)</a></td> <td class="name" ><a href="#StopAudioTrack">StopAudioTrack(type)</a></td>
<td class="summary">Stop audio track that is currently playing</td> <td class="summary">Stop audio track that is currently playing.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#GetAudioTrackLoudness">GetAudioTrackLoudness(type)</a></td> <td class="name" ><a href="#GetAudioTrackLoudness">GetAudioTrackLoudness(type)</a></td>
<td class="summary">Get current loudness level for specified track type</td> <td class="summary">Get current loudness level for specified track type.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#PlaySound">PlaySound(sound[, position])</a></td> <td class="name" ><a href="#PlaySound">PlaySound(soundID[, position])</a></td>
<td class="summary">Play sound effect</td> <td class="summary">Play sound effect.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#StopSound">StopSound(sound)</a></td> <td class="name" ><a href="#StopSound">StopSound(soundID)</a></td>
<td class="summary">Stop sound effect</td> <td class="summary">Stop sound effect.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#IsSoundPlaying">IsSoundPlaying(Sound)</a></td> <td class="name" ><a href="#IsSoundPlaying">IsSoundPlaying(soundID)</a></td>
<td class="summary">Check if the sound effect is playing</td> <td class="summary">Check if the sound effect is playing.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#IsAudioTrackPlaying">IsAudioTrackPlaying(Track)</a></td> <td class="name" ><a href="#IsAudioTrackPlaying">IsAudioTrackPlaying(Track)</a></td>
<td class="summary">Check if the audio track is playing</td> <td class="summary">Check if the audio track is playing.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#GetCurrentSubtitle">GetCurrentSubtitle()</a></td> <td class="name" ><a href="#GetCurrentSubtitle">GetCurrentSubtitle()</a></td>
@ -174,22 +174,22 @@
<dl class="function"> <dl class="function">
<dt> <dt>
<a name = "PlayAudioTrack"></a> <a name = "PlayAudioTrack"></a>
<strong>PlayAudioTrack(name, type)</strong> <strong>PlayAudioTrack(filename, type)</strong>
</dt> </dt>
<dd> <dd>
Play an audio track Play an audio track. Supported formats are wav, mp3 and ogg.
<h3>Parameters:</h3> <h3>Parameters:</h3>
<ul> <ul>
<li><span class="parameter">name</span> <li><span class="parameter">filename</span>
<span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span> <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span>
of track (without file extension) to play Filename of a track (without file extension) to play.
</li> </li>
<li><span class="parameter">type</span> <li><span class="parameter">type</span>
<span class="types"><a class="type" href="../4 enums/Sound.SoundTrackType.html#">SoundTrackType</a></span> <span class="types"><a class="type" href="../4 enums/Sound.SoundTrackType.html#">SoundTrackType</a></span>
of the audio track to play Type of the audio track to play.
</li> </li>
</ul> </ul>
@ -203,7 +203,7 @@
<strong>SetAmbientTrack(name, fromStart)</strong> <strong>SetAmbientTrack(name, fromStart)</strong>
</dt> </dt>
<dd> <dd>
Set and play an ambient track Set and play an ambient track.
@ -211,11 +211,11 @@
<ul> <ul>
<li><span class="parameter">name</span> <li><span class="parameter">name</span>
<span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span> <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span>
of track (without file extension) to play Name of track (without file extension) to play.
</li> </li>
<li><span class="parameter">fromStart</span> <li><span class="parameter">fromStart</span>
<span class="types"><span class="type">bool</span></span> <span class="types"><span class="type">bool</span></span>
specifies whether ambient track should play from the start, or crossfade at a random position Specifies whether ambient track should play from the start, or crossfade at a random position.
</li> </li>
</ul> </ul>
@ -229,7 +229,7 @@
<strong>StopAudioTracks()</strong> <strong>StopAudioTracks()</strong>
</dt> </dt>
<dd> <dd>
Stop any audio tracks currently playing Stop any audio tracks currently playing.
@ -244,7 +244,7 @@
<strong>StopAudioTrack(type)</strong> <strong>StopAudioTrack(type)</strong>
</dt> </dt>
<dd> <dd>
Stop audio track that is currently playing Stop audio track that is currently playing.
@ -252,7 +252,7 @@
<ul> <ul>
<li><span class="parameter">type</span> <li><span class="parameter">type</span>
<span class="types"><a class="type" href="../4 enums/Sound.SoundTrackType.html#">SoundTrackType</a></span> <span class="types"><a class="type" href="../4 enums/Sound.SoundTrackType.html#">SoundTrackType</a></span>
of the audio track Type of the audio track.
</li> </li>
</ul> </ul>
@ -266,7 +266,7 @@
<strong>GetAudioTrackLoudness(type)</strong> <strong>GetAudioTrackLoudness(type)</strong>
</dt> </dt>
<dd> <dd>
Get current loudness level for specified track type Get current loudness level for specified track type.
@ -274,7 +274,7 @@
<ul> <ul>
<li><span class="parameter">type</span> <li><span class="parameter">type</span>
<span class="types"><a class="type" href="../4 enums/Sound.SoundTrackType.html#">SoundTrackType</a></span> <span class="types"><a class="type" href="../4 enums/Sound.SoundTrackType.html#">SoundTrackType</a></span>
of the audio track Type of the audio track.
</li> </li>
</ul> </ul>
@ -282,7 +282,7 @@
<ol> <ol>
<span class="types"><span class="type">float</span></span> <span class="types"><span class="type">float</span></span>
current loudness of a specified audio track Current loudness of a specified audio track.
</ol> </ol>
@ -291,18 +291,18 @@
</dd> </dd>
<dt> <dt>
<a name = "PlaySound"></a> <a name = "PlaySound"></a>
<strong>PlaySound(sound[, position])</strong> <strong>PlaySound(soundID[, position])</strong>
</dt> </dt>
<dd> <dd>
Play sound effect Play sound effect.
<h3>Parameters:</h3> <h3>Parameters:</h3>
<ul> <ul>
<li><span class="parameter">sound</span> <li><span class="parameter">soundID</span>
<span class="types"><span class="type">int</span></span> <span class="types"><span class="type">int</span></span>
ID to play. Corresponds to the value in the sound XML file or Tomb Editor's "Sound Infos" window. Sound ID to play. Corresponds to the value in the sound XML file or Tomb Editor's "Sound Infos" window.
</li> </li>
<li><span class="parameter">position</span> <li><span class="parameter">position</span>
<span class="types"><a class="type" href="../3 primitive classes/Vec3.html#">Vec3</a></span> <span class="types"><a class="type" href="../3 primitive classes/Vec3.html#">Vec3</a></span>
@ -318,18 +318,18 @@
</dd> </dd>
<dt> <dt>
<a name = "StopSound"></a> <a name = "StopSound"></a>
<strong>StopSound(sound)</strong> <strong>StopSound(soundID)</strong>
</dt> </dt>
<dd> <dd>
Stop sound effect Stop sound effect.
<h3>Parameters:</h3> <h3>Parameters:</h3>
<ul> <ul>
<li><span class="parameter">sound</span> <li><span class="parameter">soundID</span>
<span class="types"><span class="type">int</span></span> <span class="types"><span class="type">int</span></span>
ID to play. Corresponds to the value in the sound XML file or Tomb Editor's "Sound Infos" window. Sound ID to play. Corresponds to the value in the sound XML file or Tomb Editor's "Sound Infos" window.
</li> </li>
</ul> </ul>
@ -340,18 +340,18 @@
</dd> </dd>
<dt> <dt>
<a name = "IsSoundPlaying"></a> <a name = "IsSoundPlaying"></a>
<strong>IsSoundPlaying(Sound)</strong> <strong>IsSoundPlaying(soundID)</strong>
</dt> </dt>
<dd> <dd>
Check if the sound effect is playing Check if the sound effect is playing.
<h3>Parameters:</h3> <h3>Parameters:</h3>
<ul> <ul>
<li><span class="parameter">Sound</span> <li><span class="parameter">soundID</span>
<span class="types"><span class="type">int</span></span> <span class="types"><span class="type">int</span></span>
ID to check. Corresponds to the value in the sound XML file or Tomb Editor's "Sound Infos" window. Sound ID to check. Corresponds to the value in the sound XML file or Tomb Editor's "Sound Infos" window.
</li> </li>
</ul> </ul>
@ -365,7 +365,7 @@
<strong>IsAudioTrackPlaying(Track)</strong> <strong>IsAudioTrackPlaying(Track)</strong>
</dt> </dt>
<dd> <dd>
Check if the audio track is playing Check if the audio track is playing.
@ -373,7 +373,7 @@
<ul> <ul>
<li><span class="parameter">Track</span> <li><span class="parameter">Track</span>
<span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span> <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span>
filename to check. Should be without extension and without full directory path. Filename to check. Should be without extension and without full directory path.
</li> </li>
</ul> </ul>
@ -388,8 +388,8 @@
</dt> </dt>
<dd> <dd>
Get current subtitle string for a voice track currently playing. Get current subtitle string for a voice track currently playing.
Subtitle file must be in .srt format, have same filename as voice track, and be placed in same directory as voice track. Subtitle file must be in .srt format, have same filename as voice track, and be placed in same directory as voice track.
Returns nil if no voice track is playing or no subtitle present. Returns nil if no voice track is playing or no subtitle present.
@ -398,7 +398,7 @@ Returns nil if no voice track is playing or no subtitle present.
<ol> <ol>
<span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span> <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span>
current subtitle string Current subtitle string.
</ol> </ol>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>
@ -143,31 +143,31 @@
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#layer1">layer1</a></td> <td class="name" ><a href="#layer1">layer1</a></td>
<td class="summary">(<a href="../3 primitive classes/Flow.SkyLayer.html#">Flow.SkyLayer</a>) Primary sky layer</td> <td class="summary">(<a href="../3 primitive classes/Flow.SkyLayer.html#">Flow.SkyLayer</a>) Primary sky cloud layer.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#layer2">layer2</a></td> <td class="name" ><a href="#layer2">layer2</a></td>
<td class="summary">(<a href="../3 primitive classes/Flow.SkyLayer.html#">Flow.SkyLayer</a>) Secondary sky layer</td> <td class="summary">(<a href="../3 primitive classes/Flow.SkyLayer.html#">Flow.SkyLayer</a>) Secondary sky cloud layer.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#horizon1">horizon1</a></td> <td class="name" ><a href="#horizon1">horizon1</a></td>
<td class="summary">(<a href="../3 primitive classes/Flow.Horizon.html#">Flow.Horizon</a>) First horizon layer.</td> <td class="summary">(<a href="../3 primitive classes/Flow.Horizon.html#">Flow.Horizon</a>) First horizon layer.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#horizon1">horizon1</a></td> <td class="name" ><a href="#horizon2">horizon2</a></td>
<td class="summary">(<a href="../3 primitive classes/Flow.Horizon.html#">Flow.Horizon</a>) Second horizon layer.</td> <td class="summary">(<a href="../3 primitive classes/Flow.Horizon.html#">Flow.Horizon</a>) Second horizon layer.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#starfield">starfield</a></td> <td class="name" ><a href="#starField">starField</a></td>
<td class="summary">(<a href="../3 primitive classes/Flow.Starfield.html#">Flow.Starfield</a>) Starfield.</td> <td class="summary">(<a href="../3 primitive classes/Flow.StarField.html#">Flow.StarField</a>) Starfield in the sky.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#lensFlare">lensFlare</a></td> <td class="name" ><a href="#lensFlare">lensFlare</a></td>
<td class="summary">(<a href="../3 primitive classes/Flow.LensFlare.html#">Flow.LensFlare</a>) Global lens flare .</td> <td class="summary">(<a href="../3 primitive classes/Flow.LensFlare.html#">Flow.LensFlare</a>) Global lens flare.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#fog">fog</a></td> <td class="name" ><a href="#fog">fog</a></td>
<td class="summary">(<a href="../3 primitive classes/Flow.Fog.html#">Flow.Fog</a>) omni fog RGB color and distance.</td> <td class="summary">(<a href="../3 primitive classes/Flow.Fog.html#">Flow.Fog</a>) Global distance fog, with specified RGB color and distance.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#storm">storm</a></td> <td class="name" ><a href="#storm">storm</a></td>
@ -199,11 +199,11 @@
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#objects">objects</a></td> <td class="name" ><a href="#objects">objects</a></td>
<td class="summary">(table of <a href="../3 primitive classes/Flow.InventoryItem.html#">Flow.InventoryItem</a>s) table of inventory object overrides</td> <td class="summary">(table of <a href="../3 primitive classes/Flow.InventoryItem.html#">Flow.InventoryItem</a>s) A table of inventory object layout overrides.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#secrets">secrets</a></td> <td class="name" ><a href="#secrets">secrets</a></td>
<td class="summary">(short) Set Secrets for Level</td> <td class="summary">(short) Set total secret count for current level.</td>
</tr> </tr>
</table> </table>
<h2><a href="#Functions">Functions</a></h2> <h2><a href="#Functions">Functions</a></h2>
@ -306,7 +306,7 @@
<strong>layer1</strong> <strong>layer1</strong>
</dt> </dt>
<dd> <dd>
(<a href="../3 primitive classes/Flow.SkyLayer.html#">Flow.SkyLayer</a>) Primary sky layer (<a href="../3 primitive classes/Flow.SkyLayer.html#">Flow.SkyLayer</a>) Primary sky cloud layer.
@ -321,7 +321,7 @@
<strong>layer2</strong> <strong>layer2</strong>
</dt> </dt>
<dd> <dd>
(<a href="../3 primitive classes/Flow.SkyLayer.html#">Flow.SkyLayer</a>) Secondary sky layer (<a href="../3 primitive classes/Flow.SkyLayer.html#">Flow.SkyLayer</a>) Secondary sky cloud layer.
@ -347,8 +347,8 @@
</dd> </dd>
<dt> <dt>
<a name = "horizon1"></a> <a name = "horizon2"></a>
<strong>horizon1</strong> <strong>horizon2</strong>
</dt> </dt>
<dd> <dd>
(<a href="../3 primitive classes/Flow.Horizon.html#">Flow.Horizon</a>) Second horizon layer. (<a href="../3 primitive classes/Flow.Horizon.html#">Flow.Horizon</a>) Second horizon layer.
@ -362,11 +362,11 @@
</dd> </dd>
<dt> <dt>
<a name = "starfield"></a> <a name = "starField"></a>
<strong>starfield</strong> <strong>starField</strong>
</dt> </dt>
<dd> <dd>
(<a href="../3 primitive classes/Flow.Starfield.html#">Flow.Starfield</a>) Starfield. (<a href="../3 primitive classes/Flow.StarField.html#">Flow.StarField</a>) Starfield in the sky.
@ -381,7 +381,7 @@
<strong>lensFlare</strong> <strong>lensFlare</strong>
</dt> </dt>
<dd> <dd>
(<a href="../3 primitive classes/Flow.LensFlare.html#">Flow.LensFlare</a>) Global lens flare . (<a href="../3 primitive classes/Flow.LensFlare.html#">Flow.LensFlare</a>) Global lens flare.
@ -396,9 +396,8 @@
<strong>fog</strong> <strong>fog</strong>
</dt> </dt>
<dd> <dd>
(<a href="../3 primitive classes/Flow.Fog.html#">Flow.Fog</a>) omni fog RGB color and distance. (<a href="../3 primitive classes/Flow.Fog.html#">Flow.Fog</a>) Global distance fog, with specified RGB color and distance.
As seen in TR4's Desert Railroad. If not provided, distance fog will not be visible.
If not provided, distance fog will be black.
@ -537,7 +536,7 @@ Invisible
<strong>objects</strong> <strong>objects</strong>
</dt> </dt>
<dd> <dd>
(table of <a href="../3 primitive classes/Flow.InventoryItem.html#">Flow.InventoryItem</a>s) table of inventory object overrides (table of <a href="../3 primitive classes/Flow.InventoryItem.html#">Flow.InventoryItem</a>s) A table of inventory object layout overrides.
@ -552,7 +551,7 @@ Invisible
<strong>secrets</strong> <strong>secrets</strong>
</dt> </dt>
<dd> <dd>
(short) Set Secrets for Level (short) Set total secret count for current level.
@ -580,7 +579,7 @@ Invisible
<ol> <ol>
<span class="types"><a class="type" href="../2 classes/Flow.Level.html#Level">Level</a></span> <span class="types"><a class="type" href="../2 classes/Flow.Level.html#Level">Level</a></span>
a Level object a Level object.
</ol> </ol>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>
@ -118,8 +118,6 @@
<p>Represents a moveable object in the game world.</p> <p>Represents a moveable object in the game world.</p>
<p> Examples include the player, traps, enemies, doors, and pickups. See also <a href="../2 classes/Objects.LaraObject.html#">Objects.LaraObject</a> for player-specific features.</p> <p> Examples include the player, traps, enemies, doors, and pickups. See also <a href="../2 classes/Objects.LaraObject.html#">Objects.LaraObject</a> for player-specific features.</p>
<p> pragma nostrip</p>
<h2><a href="#Functions">Functions</a></h2> <h2><a href="#Functions">Functions</a></h2>
<table class="function_list"> <table class="function_list">

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>
@ -177,7 +177,7 @@
<strong>Room:GetRoomNumber()</strong> <strong>Room:GetRoomNumber()</strong>
</dt> </dt>
<dd> <dd>
Get the room's number. () Get the room's number.
@ -198,7 +198,7 @@
<strong>Room:GetName()</strong> <strong>Room:GetName()</strong>
</dt> </dt>
<dd> <dd>
Get the room's unique string identifier. () Get the room's unique string identifier.
@ -219,7 +219,7 @@
<strong>Room:GetColor()</strong> <strong>Room:GetColor()</strong>
</dt> </dt>
<dd> <dd>
Get the room's ambient light color. () Get the room's ambient light color.
@ -240,7 +240,7 @@
<strong>Room:GetReverbType()</strong> <strong>Room:GetReverbType()</strong>
</dt> </dt>
<dd> <dd>
Get the room's reverb type. () Get the room's reverb type.
@ -261,7 +261,7 @@
<strong>Room:SetName(name)</strong> <strong>Room:SetName(name)</strong>
</dt> </dt>
<dd> <dd>
Set the room's unique string identifier. () Set the room's unique string identifier.
@ -283,7 +283,7 @@
<strong>Room:SetReverbType(Reverb)</strong> <strong>Room:SetReverbType(Reverb)</strong>
</dt> </dt>
<dd> <dd>
Set the room's reverb type. () Set the room's reverb type.
@ -305,7 +305,7 @@
<strong>Room:SetFlag(flagID, Boolean)</strong> <strong>Room:SetFlag(flagID, Boolean)</strong>
</dt> </dt>
<dd> <dd>
Set the room's specified flag. () Set the room's specified flag.
@ -331,7 +331,7 @@
<strong>Room:GetFlag(flagID)</strong> <strong>Room:GetFlag(flagID)</strong>
</dt> </dt>
<dd> <dd>
Get the room's specified flag value (true or false). () Get the room's specified flag value (true or false).
@ -353,7 +353,7 @@
<strong>Room:IsTagPresent(tag)</strong> <strong>Room:IsTagPresent(tag)</strong>
</dt> </dt>
<dd> <dd>
Check if the specified tag is set for the room. () Check if the specified tag is set for the room.
@ -381,7 +381,7 @@
<strong>Room:GetActive()</strong> <strong>Room:GetActive()</strong>
</dt> </dt>
<dd> <dd>
Check if the room is active. () Check if the room is active.

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <here>Color</here></li> <li> <here>Color</here></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>
@ -115,10 +115,8 @@
<div id="content"> <div id="content">
<h1>Primitive Class <code>Flow.Fog</code></h1> <h1>Primitive Class <code>Flow.Fog</code></h1>
<p>Distance fog.</p> <p>Represesnts distance fog.</p>
<p> <p> To be used with <a href="../2 classes/Flow.Level.html#fog">Flow.Level.fog</a> property.</p>
</p>
<h2><a href="#Members">Members</a></h2> <h2><a href="#Members">Members</a></h2>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>
@ -116,63 +116,127 @@
<h1>Primitive Class <code>Flow.Horizon</code></h1> <h1>Primitive Class <code>Flow.Horizon</code></h1>
<p>Represents a horizon.</p> <p>Represents a horizon.</p>
<p> <p> To be used with <a href="../2 classes/Flow.Level.html#horizon1">Flow.Level.horizon1</a> and <a href="../2 classes/Flow.Level.html#horizon2">Flow.Level.horizon2</a> properties.</p>
</p>
<h2><a href="#Members">Members</a></h2>
<table class="function_list">
<tr>
<td class="name" ><a href="#enabled">enabled</a></td>
<td class="summary">(bool) Horizon enabled state.</td>
</tr>
<tr>
<td class="name" ><a href="#objectID">objectID</a></td>
<td class="summary">(Objects.ObjID) Horizon object ID.</td>
</tr>
<tr>
<td class="name" ><a href="#position">position</a></td>
<td class="summary">(Vec3) Horizon position.</td>
</tr>
<tr>
<td class="name" ><a href="#rotation">rotation</a></td>
<td class="summary">(Rotation) Horizon rotation.</td>
</tr>
<tr>
<td class="name" ><a href="#transparency">transparency</a></td>
<td class="summary">(float) Horizon transparency.</td>
</tr>
</table>
<h2><a href="#Functions">Functions</a></h2> <h2><a href="#Functions">Functions</a></h2>
<table class="function_list"> <table class="function_list">
<tr> <tr>
<td class="name" ><a href="#Horizon">Horizon(objectID)</a></td> <td class="name" ><a href="#Horizon">Horizon(objectID)</a></td>
<td class="summary">Create a horizon object.</td> <td class="summary">Create a horizon object.</td>
</tr> </tr>
<tr>
<td class="name" ><a href="#GetEnabled">GetEnabled()</a></td>
<td class="summary">Get the horizon's enabled state.</td>
</tr>
<tr>
<td class="name" ><a href="#GetObjectID">GetObjectID()</a></td>
<td class="summary">Get the horizon's slot object ID.</td>
</tr>
<tr>
<td class="name" ><a href="#GetPosition">GetPosition()</a></td>
<td class="summary">Get the horizon's world position.</td>
</tr>
<tr>
<td class="name" ><a href="#GetRotation">GetRotation()</a></td>
<td class="summary">Get the horizon's rotation.</td>
</tr>
<tr>
<td class="name" ><a href="#GetTransparency">GetTransparency()</a></td>
<td class="summary">Get the horizon's transparency.</td>
</tr>
<tr>
<td class="name" ><a href="#SetEnabled">SetEnabled(enabled)</a></td>
<td class="summary">Set the horizon's enabled state.</td>
</tr>
<tr>
<td class="name" ><a href="#SetObjectID">SetObjectID(objectID)</a></td>
<td class="summary">Set the horizon's object ID.</td>
</tr>
<tr>
<td class="name" ><a href="#SetPosition">SetPosition(pos[, noInterpolation])</a></td>
<td class="summary">Set the horizon's world position.</td>
</tr>
<tr>
<td class="name" ><a href="#SetRotation">SetRotation(rot[, noInterpolation])</a></td>
<td class="summary">Set the horizon's rotation.</td>
</tr>
<tr>
<td class="name" ><a href="#SetTransparency">SetTransparency(transparency)</a></td>
<td class="summary">Set the horizon's transparency.</td>
</tr>
</table> </table>
<br/> <br/>
<br/> <br/>
<h2 class="section-header "><a name="Members"></a>Members</h2>
<dl class="function">
<dt>
<a name = "enabled"></a>
<strong>enabled</strong>
</dt>
<dd>
(bool) Horizon enabled state.
If set to true, horizon will be visible.
</dd>
<dt>
<a name = "objectID"></a>
<strong>objectID</strong>
</dt>
<dd>
(Objects.ObjID) Horizon object ID.
</dd>
<dt>
<a name = "position"></a>
<strong>position</strong>
</dt>
<dd>
(Vec3) Horizon position.
Specifies an offset from the camera origin.
</dd>
<dt>
<a name = "rotation"></a>
<strong>rotation</strong>
</dt>
<dd>
(Rotation) Horizon rotation.
Specifies horizon rotation.
</dd>
<dt>
<a name = "transparency"></a>
<strong>transparency</strong>
</dt>
<dd>
(float) Horizon transparency.
Specifies horizon transparency on a range from 0 to 1.
</dd>
</dl>
<h2 class="section-header "><a name="Functions"></a>Functions</h2> <h2 class="section-header "><a name="Functions"></a>Functions</h2>
<dl class="function"> <dl class="function">
@ -203,231 +267,6 @@
</dd>
<dt>
<a name = "GetEnabled"></a>
<strong>GetEnabled()</strong>
</dt>
<dd>
Get the horizon's enabled state.
<h3>Returns:</h3>
<ol>
<span class="types"><span class="type">bool</span></span>
Enabled state.
</ol>
</dd>
<dt>
<a name = "GetObjectID"></a>
<strong>GetObjectID()</strong>
</dt>
<dd>
Get the horizon's slot object ID.
<h3>Returns:</h3>
<ol>
<span class="types"><a class="type" href="../4 enums/Objects.ObjID.html#">ObjID</a></span>
Object ID.
</ol>
</dd>
<dt>
<a name = "GetPosition"></a>
<strong>GetPosition()</strong>
</dt>
<dd>
Get the horizon's world position.
<h3>Returns:</h3>
<ol>
<span class="types"><a class="type" href="../3 primitive classes/Vec3.html#">Vec3</a></span>
Position.
</ol>
</dd>
<dt>
<a name = "GetRotation"></a>
<strong>GetRotation()</strong>
</dt>
<dd>
Get the horizon's rotation.
<h3>Returns:</h3>
<ol>
<span class="types"><a class="type" href="../3 primitive classes/Rotation.html#">Rotation</a></span>
Rotation.
</ol>
</dd>
<dt>
<a name = "GetTransparency"></a>
<strong>GetTransparency()</strong>
</dt>
<dd>
Get the horizon's transparency.
<h3>Returns:</h3>
<ol>
<span class="types"><span class="type">float</span></span>
Transparency.
</ol>
</dd>
<dt>
<a name = "SetEnabled"></a>
<strong>SetEnabled(enabled)</strong>
</dt>
<dd>
Set the horizon's enabled state.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">enabled</span>
<span class="types"><span class="type">bool</span></span>
New enabled state.
</li>
</ul>
</dd>
<dt>
<a name = "SetObjectID"></a>
<strong>SetObjectID(objectID)</strong>
</dt>
<dd>
Set the horizon's object ID.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">objectID</span>
<span class="types"><a class="type" href="../4 enums/Objects.ObjID.html#">ObjID</a></span>
Object ID.
</li>
</ul>
</dd>
<dt>
<a name = "SetPosition"></a>
<strong>SetPosition(pos[, noInterpolation])</strong>
</dt>
<dd>
Set the horizon's world position.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">pos</span>
<span class="types"><a class="type" href="../3 primitive classes/Vec3.html#">Vec3</a></span>
New world position.
</li>
<li><span class="parameter">noInterpolation</span>
<span class="types"><span class="type">bool</span></span>
Disable interpolation with the previous frame's position. <strong>default: false</strong>
(<em>optional</em>)
</li>
</ul>
</dd>
<dt>
<a name = "SetRotation"></a>
<strong>SetRotation(rot[, noInterpolation])</strong>
</dt>
<dd>
Set the horizon's rotation.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">rot</span>
<span class="types"><a class="type" href="../3 primitive classes/Rotation.html#">Rotation</a></span>
New rotation.
</li>
<li><span class="parameter">noInterpolation</span>
<span class="types"><span class="type">bool</span></span>
Disable interpolation with the previous frame's rotation. <strong>default: false</strong>
(<em>optional</em>)
</li>
</ul>
</dd>
<dt>
<a name = "SetTransparency"></a>
<strong>SetTransparency(transparency)</strong>
</dt>
<dd>
Set the horizon's transparency.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">transparency</span>
<span class="types"><span class="type">float</span></span>
New transparency alpha.
</li>
</ul>
</dd> </dd>
</dl> </dl>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <here>Flow.InventoryItem</here></li> <li> <here>Flow.InventoryItem</here></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>
@ -116,9 +116,7 @@
<h1>Primitive Class <code>Flow.InventoryItem</code></h1> <h1>Primitive Class <code>Flow.InventoryItem</code></h1>
<p>Represents the properties of an object as it appears in the inventory.</p> <p>Represents the properties of an object as it appears in the inventory.</p>
<p> <p> To be used in <a href="../2 classes/Flow.Level.html#objects">Flow.Level.objects</a> list.</p>
</p>
<h2><a href="#Functions">Functions</a></h2> <h2><a href="#Functions">Functions</a></h2>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <here>Flow.LensFlare</here></li> <li> <here>Flow.LensFlare</here></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>
@ -116,59 +116,124 @@
<h1>Primitive Class <code>Flow.LensFlare</code></h1> <h1>Primitive Class <code>Flow.LensFlare</code></h1>
<p>Represents a global lens flare (not to be confused with the lens flare object).</p> <p>Represents a global lens flare (not to be confused with the lens flare object).</p>
<p> <p> To be used with <a href="../2 classes/Flow.Level.html#lensFlare">Flow.Level.lensFlare</a> property.</p>
</p>
<h2><a href="#Members">Members</a></h2>
<table class="function_list">
<tr>
<td class="name" ><a href="#enabled">enabled</a></td>
<td class="summary">(bool) Lens flare enabled state.</td>
</tr>
<tr>
<td class="name" ><a href="#spriteID">spriteID</a></td>
<td class="summary">(int) Lens flare's sun sprite object ID.</td>
</tr>
<tr>
<td class="name" ><a href="#pitch">pitch</a></td>
<td class="summary">(float) Lens flare's pitch (vertical) angle in degrees.</td>
</tr>
<tr>
<td class="name" ><a href="#yaw">yaw</a></td>
<td class="summary">(float) Lens flare's yaw (horizontal) angle in degrees.</td>
</tr>
<tr>
<td class="name" ><a href="#color">color</a></td>
<td class="summary">(Color) Lens flare's color.</td>
</tr>
</table>
<h2><a href="#Functions">Functions</a></h2> <h2><a href="#Functions">Functions</a></h2>
<table class="function_list"> <table class="function_list">
<tr> <tr>
<td class="name" ><a href="#LensFlare">LensFlare(pitch, yaw, color)</a></td> <td class="name" ><a href="#LensFlare">LensFlare(pitch, yaw, color)</a></td>
<td class="summary">Create a LensFlare object.</td> <td class="summary">Create a LensFlare object.</td>
</tr> </tr>
<tr>
<td class="name" ><a href="#LensFlare:GetSunSpriteID">LensFlare:GetSunSpriteID()</a></td>
<td class="summary">Get this lens flare's sun sprite ID.</td>
</tr>
<tr>
<td class="name" ><a href="#LensFlare:GetPitch">LensFlare:GetPitch()</a></td>
<td class="summary">Get this lens flare's pitch angle in degrees.</td>
</tr>
<tr>
<td class="name" ><a href="#LensFlare:GetYaw">LensFlare:GetYaw()</a></td>
<td class="summary">Get this lens flare's yaw angle in degrees.</td>
</tr>
<tr>
<td class="name" ><a href="#LensFlare:GetColor">LensFlare:GetColor()</a></td>
<td class="summary">Get the lens flare's color.</td>
</tr>
<tr>
<td class="name" ><a href="#LensFlare:GetEnabled">LensFlare:GetEnabled()</a></td>
<td class="summary">Get this lens flare's enabled status.</td>
</tr>
<tr>
<td class="name" ><a href="#LensFlare:SetSunSpriteID">LensFlare:SetSunSpriteID(spriteID)</a></td>
<td class="summary">Set this lens flare's sun sprite ID.</td>
</tr>
<tr>
<td class="name" ><a href="#LensFlare:SetPitch">LensFlare:SetPitch(pitch)</a></td>
<td class="summary">Set this lens flare's pitch angle.</td>
</tr>
<tr>
<td class="name" ><a href="#LensFlare:SetYaw">LensFlare:SetYaw(yaw)</a></td>
<td class="summary">Set this lens flare's yaw angle.</td>
</tr>
<tr>
<td class="name" ><a href="#LensFlare:SetColor">LensFlare:SetColor(color)</a></td>
<td class="summary">Set this lens flare's color.</td>
</tr>
</table> </table>
<br/> <br/>
<br/> <br/>
<h2 class="section-header "><a name="Members"></a>Members</h2>
<dl class="function">
<dt>
<a name = "enabled"></a>
<strong>enabled</strong>
</dt>
<dd>
(bool) Lens flare enabled state.
If set to true, lens flare will be visible.
</dd>
<dt>
<a name = "spriteID"></a>
<strong>spriteID</strong>
</dt>
<dd>
(int) Lens flare's sun sprite object ID.
</dd>
<dt>
<a name = "pitch"></a>
<strong>pitch</strong>
</dt>
<dd>
(float) Lens flare's pitch (vertical) angle in degrees.
</dd>
<dt>
<a name = "yaw"></a>
<strong>yaw</strong>
</dt>
<dd>
(float) Lens flare's yaw (horizontal) angle in degrees.
</dd>
<dt>
<a name = "color"></a>
<strong>color</strong>
</dt>
<dd>
(Color) Lens flare's color.
</dd>
</dl>
<h2 class="section-header "><a name="Functions"></a>Functions</h2> <h2 class="section-header "><a name="Functions"></a>Functions</h2>
<dl class="function"> <dl class="function">
@ -207,193 +272,6 @@
</dd>
<dt>
<a name = "LensFlare:GetSunSpriteID"></a>
<strong>LensFlare:GetSunSpriteID()</strong>
</dt>
<dd>
Get this lens flare's sun sprite ID.
<h3>Returns:</h3>
<ol>
<span class="types"><span class="type">int</span></span>
Sprite ID.
</ol>
</dd>
<dt>
<a name = "LensFlare:GetPitch"></a>
<strong>LensFlare:GetPitch()</strong>
</dt>
<dd>
Get this lens flare's pitch angle in degrees.
<h3>Returns:</h3>
<ol>
<span class="types"><span class="type">float</span></span>
Pitch angle in degrees.
</ol>
</dd>
<dt>
<a name = "LensFlare:GetYaw"></a>
<strong>LensFlare:GetYaw()</strong>
</dt>
<dd>
Get this lens flare's yaw angle in degrees.
<h3>Returns:</h3>
<ol>
<span class="types"><span class="type">float</span></span>
Yaw angle in degrees.
</ol>
</dd>
<dt>
<a name = "LensFlare:GetColor"></a>
<strong>LensFlare:GetColor()</strong>
</dt>
<dd>
Get the lens flare's color.
</dd>
<dt>
<a name = "LensFlare:GetEnabled"></a>
<strong>LensFlare:GetEnabled()</strong>
</dt>
<dd>
Get this lens flare's enabled status.
<h3>Returns:</h3>
<ol>
<span class="types"><span class="type">bool</span></span>
Enabled status. <strong>true: enabled</strong>, <strong>false: disabled</strong>
</ol>
</dd>
<dt>
<a name = "LensFlare:SetSunSpriteID"></a>
<strong>LensFlare:SetSunSpriteID(spriteID)</strong>
</dt>
<dd>
Set this lens flare's sun sprite ID.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">spriteID</span>
<span class="types"><span class="type">int</span></span>
New sun sprite ID.
</li>
</ul>
</dd>
<dt>
<a name = "LensFlare:SetPitch"></a>
<strong>LensFlare:SetPitch(pitch)</strong>
</dt>
<dd>
Set this lens flare's pitch angle.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">pitch</span>
<span class="types"><span class="type">float</span></span>
New pitch angle in degrees.
</li>
</ul>
</dd>
<dt>
<a name = "LensFlare:SetYaw"></a>
<strong>LensFlare:SetYaw(yaw)</strong>
</dt>
<dd>
Set this lens flare's yaw angle.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">yaw</span>
<span class="types"><span class="type">float</span></span>
New yaw angle in degrees.
</li>
</ul>
</dd>
<dt>
<a name = "LensFlare:SetColor"></a>
<strong>LensFlare:SetColor(color)</strong>
</dt>
<dd>
Set this lens flare's color.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">color</span>
<span class="types"><a class="type" href="../3 primitive classes/Color.html#">Color</a></span>
New color.
</li>
</ul>
</dd> </dd>
</dl> </dl>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <here>Flow.SkyLayer</here></li> <li> <here>Flow.SkyLayer</here></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>
@ -116,7 +116,7 @@
<h1>Primitive Class <code>Flow.SkyLayer</code></h1> <h1>Primitive Class <code>Flow.SkyLayer</code></h1>
<p>Describes a layer of moving clouds.</p> <p>Describes a layer of moving clouds.</p>
<p>As seen in TR4's City of the Dead.</p> <p> To be used with <a href="../2 classes/Flow.Level.html#layer1">Flow.Level.layer1</a> and <a href="../2 classes/Flow.Level.html#layer2">Flow.Level.layer2</a> properties.</p>
<h2><a href="#Members">Members</a></h2> <h2><a href="#Members">Members</a></h2>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <here>Flow.Starfield</here></li> <li> <here>Flow.StarField</here></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>
@ -114,75 +114,116 @@
<div id="content"> <div id="content">
<h1>Primitive Class <code>Flow.Starfield</code></h1> <h1>Primitive Class <code>Flow.StarField</code></h1>
<p>Represents a starfield in the sky.</p> <p>Represents a star field in the sky.</p>
<p> <p> To be used with <a href="../2 classes/Flow.Level.html#starField">Flow.Level.starField</a> property.</p>
</p>
<h2><a href="#Members">Members</a></h2>
<table class="function_list">
<tr>
<td class="name" ><a href="#starCount">starCount</a></td>
<td class="summary">(int) Amount of visible stars.</td>
</tr>
<tr>
<td class="name" ><a href="#meteorCount">meteorCount</a></td>
<td class="summary">(int) Amount of visible meteors.</td>
</tr>
<tr>
<td class="name" ><a href="#meteorSpawnDensity">meteorSpawnDensity</a></td>
<td class="summary">(int) Meteor spawn density.</td>
</tr>
<tr>
<td class="name" ><a href="#meteorVelocity">meteorVelocity</a></td>
<td class="summary">(int) Meteor velocity.</td>
</tr>
</table>
<h2><a href="#Functions">Functions</a></h2> <h2><a href="#Functions">Functions</a></h2>
<table class="function_list"> <table class="function_list">
<tr> <tr>
<td class="name" ><a href="#Starfield">Starfield(starCount)</a></td> <td class="name" ><a href="#StarField">StarField(starCount)</a></td>
<td class="summary">Create a starfield object with only stars.</td> <td class="summary">Create a starfield object with only stars.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#Starfield">Starfield(starCount, meteorCount, meteorSpawnDensity, meteorVel)</a></td> <td class="name" ><a href="#StarField">StarField(starCount, meteorCount, meteorSpawnDensity, meteorVel)</a></td>
<td class="summary">Create a starfield object with stars and meteors.</td> <td class="summary">Create a starfield object with stars and meteors.</td>
</tr> </tr>
<tr>
<td class="name" ><a href="#Starfield:GetStarCount">Starfield:GetStarCount()</a></td>
<td class="summary">Get this starfield's number of stars.</td>
</tr>
<tr>
<td class="name" ><a href="#Starfield:GetMeteorCount">Starfield:GetMeteorCount()</a></td>
<td class="summary">Get this starfield's number of meteors.</td>
</tr>
<tr>
<td class="name" ><a href="#Starfield:GetMeteorSpawnDensity">Starfield:GetMeteorSpawnDensity()</a></td>
<td class="summary">Get this starfield's meteor spawn density.</td>
</tr>
<tr>
<td class="name" ><a href="#Starfield:GetMeteorVelocity">Starfield:GetMeteorVelocity()</a></td>
<td class="summary">Get this starfield's meteor velocity.</td>
</tr>
<tr>
<td class="name" ><a href="#Starfield:GetStarsEnabled">Starfield:GetStarsEnabled()</a></td>
<td class="summary">Get this starfield's stars enabled status.</td>
</tr>
<tr>
<td class="name" ><a href="#Starfield:GetMeteorsEnabled">Starfield:GetMeteorsEnabled()</a></td>
<td class="summary">Get this starfield's meteors enabled status.</td>
</tr>
<tr>
<td class="name" ><a href="#Starfield:SetStarCount">Starfield:SetStarCount(count)</a></td>
<td class="summary">Set this starfield's number of stars.</td>
</tr>
<tr>
<td class="name" ><a href="#Starfield:SetMeteorCount">Starfield:SetMeteorCount(count)</a></td>
<td class="summary">Set this starfield's number of meteors.</td>
</tr>
<tr>
<td class="name" ><a href="#Starfield:SetMeteorSpawnDensity">Starfield:SetMeteorSpawnDensity(density)</a></td>
<td class="summary">Set this starfield's meteor spawn density.</td>
</tr>
<tr>
<td class="name" ><a href="#Starfield:SetMeteorVelocity">Starfield:SetMeteorVelocity(velocity)</a></td>
<td class="summary">Set this starfield's meteor velocity.</td>
</tr>
</table> </table>
<br/> <br/>
<br/> <br/>
<h2 class="section-header "><a name="Members"></a>Members</h2>
<dl class="function">
<dt>
<a name = "starCount"></a>
<strong>starCount</strong>
</dt>
<dd>
(int) Amount of visible stars.
</dd>
<dt>
<a name = "meteorCount"></a>
<strong>meteorCount</strong>
</dt>
<dd>
(int) Amount of visible meteors.
</dd>
<dt>
<a name = "meteorSpawnDensity"></a>
<strong>meteorSpawnDensity</strong>
</dt>
<dd>
(int) Meteor spawn density.
</dd>
<dt>
<a name = "meteorVelocity"></a>
<strong>meteorVelocity</strong>
</dt>
<dd>
(int) Meteor velocity.
</dd>
</dl>
<h2 class="section-header "><a name="Functions"></a>Functions</h2> <h2 class="section-header "><a name="Functions"></a>Functions</h2>
<dl class="function"> <dl class="function">
<dt> <dt>
<a name = "Starfield"></a> <a name = "StarField"></a>
<strong>Starfield(starCount)</strong> <strong>StarField(starCount)</strong>
</dt> </dt>
<dd> <dd>
Create a starfield object with only stars. Create a starfield object with only stars.
@ -200,8 +241,8 @@
<h3>Returns:</h3> <h3>Returns:</h3>
<ol> <ol>
<span class="types"><a class="type" href="../3 primitive classes/Flow.Starfield.html#Starfield">Starfield</a></span> <span class="types"><span class="type">Starfield</span></span>
A new Starfield object. A new StarField object.
</ol> </ol>
@ -209,8 +250,8 @@
</dd> </dd>
<dt> <dt>
<a name = "Starfield"></a> <a name = "StarField"></a>
<strong>Starfield(starCount, meteorCount, meteorSpawnDensity, meteorVel)</strong> <strong>StarField(starCount, meteorCount, meteorSpawnDensity, meteorVel)</strong>
</dt> </dt>
<dd> <dd>
Create a starfield object with stars and meteors. Create a starfield object with stars and meteors.
@ -240,227 +281,13 @@
<h3>Returns:</h3> <h3>Returns:</h3>
<ol> <ol>
<span class="types"><a class="type" href="../3 primitive classes/Flow.Starfield.html#Starfield">Starfield</a></span> <span class="types"><a class="type" href="../3 primitive classes/Flow.StarField.html#StarField">StarField</a></span>
A new Starfield object. A new StarField object.
</ol> </ol>
</dd>
<dt>
<a name = "Starfield:GetStarCount"></a>
<strong>Starfield:GetStarCount()</strong>
</dt>
<dd>
Get this starfield's number of stars.
<h3>Returns:</h3>
<ol>
<span class="types"><span class="type">int</span></span>
Count.
</ol>
</dd>
<dt>
<a name = "Starfield:GetMeteorCount"></a>
<strong>Starfield:GetMeteorCount()</strong>
</dt>
<dd>
Get this starfield's number of meteors.
<h3>Returns:</h3>
<ol>
<span class="types"><span class="type">int</span></span>
Count.
</ol>
</dd>
<dt>
<a name = "Starfield:GetMeteorSpawnDensity"></a>
<strong>Starfield:GetMeteorSpawnDensity()</strong>
</dt>
<dd>
Get this starfield's meteor spawn density.
<h3>Returns:</h3>
<ol>
<span class="types"><span class="type">int</span></span>
Spawn density.
</ol>
</dd>
<dt>
<a name = "Starfield:GetMeteorVelocity"></a>
<strong>Starfield:GetMeteorVelocity()</strong>
</dt>
<dd>
Get this starfield's meteor velocity.
<h3>Returns:</h3>
<ol>
<span class="types"><span class="type">float</span></span>
Velocity.
</ol>
</dd>
<dt>
<a name = "Starfield:GetStarsEnabled"></a>
<strong>Starfield:GetStarsEnabled()</strong>
</dt>
<dd>
Get this starfield's stars enabled status.
<h3>Returns:</h3>
<ol>
<span class="types"><span class="type">bool</span></span>
Stars enabled status. <strong>true: enabled</strong>, <strong>false: disabled</strong>
</ol>
</dd>
<dt>
<a name = "Starfield:GetMeteorsEnabled"></a>
<strong>Starfield:GetMeteorsEnabled()</strong>
</dt>
<dd>
Get this starfield's meteors enabled status.
<h3>Returns:</h3>
<ol>
<span class="types"><span class="type">bool</span></span>
Meteors enabled status. <strong>true: enabled</strong>, <strong>false: disabled</strong>
</ol>
</dd>
<dt>
<a name = "Starfield:SetStarCount"></a>
<strong>Starfield:SetStarCount(count)</strong>
</dt>
<dd>
Set this starfield's number of stars.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">count</span>
<span class="types"><span class="type">int</span></span>
New star count.
</li>
</ul>
</dd>
<dt>
<a name = "Starfield:SetMeteorCount"></a>
<strong>Starfield:SetMeteorCount(count)</strong>
</dt>
<dd>
Set this starfield's number of meteors.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">count</span>
<span class="types"><span class="type">int</span></span>
New meteor count.
</li>
</ul>
</dd>
<dt>
<a name = "Starfield:SetMeteorSpawnDensity"></a>
<strong>Starfield:SetMeteorSpawnDensity(density)</strong>
</dt>
<dd>
Set this starfield's meteor spawn density.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">density</span>
<span class="types"><span class="type">int</span></span>
New meteor spawn density.
</li>
</ul>
</dd>
<dt>
<a name = "Starfield:SetMeteorVelocity"></a>
<strong>Starfield:SetMeteorVelocity(velocity)</strong>
</dt>
<dd>
Set this starfield's meteor velocity.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">velocity</span>
<span class="types"><span class="type">float</span></span>
New meteor velocity.
</li>
</ul>
</dd> </dd>
</dl> </dl>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <here>Rotation</here></li> <li> <here>Rotation</here></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <here>Time</here></li> <li> <here>Time</here></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>
@ -143,23 +143,19 @@
<td class="summary">Create a Vec2 object.</td> <td class="summary">Create a Vec2 object.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#__tostring">__tostring(This)</a></td>
<td class="summary">Metafunction.</td>
</tr>
<tr>
<td class="name" ><a href="#Vec2:Normalize">Vec2:Normalize()</a></td> <td class="name" ><a href="#Vec2:Normalize">Vec2:Normalize()</a></td>
<td class="summary">Get a copy of this Vec2 normalized to length 1.</td> <td class="summary">Get a copy of this Vec2 normalized to length 1.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#Translate">Translate(dir, dist)</a></td> <td class="name" ><a href="#Vec2:Translate">Vec2:Translate(dir, dist)</a></td>
<td class="summary">Get a copy of this Vec2 translated in the input Vec2 direction by the input distance.</td> <td class="summary">Get a copy of this Vec2 translated in the input Vec2 direction by the input distance.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#Translate">Translate(rot, dist)</a></td> <td class="name" ><a href="#Vec2:Translate">Vec2:Translate(rot, dist)</a></td>
<td class="summary">Get a copy of this Vec2 translated in the direction of the input rotation in degrees by the input distance.</td> <td class="summary">Get a copy of this Vec2 translated in the direction of the input rotation in degrees by the input distance.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#Translate">Translate(rot, relOffset)</a></td> <td class="name" ><a href="#Vec2:Translate">Vec2:Translate(rot, relOffset)</a></td>
<td class="summary">Get a copy of this Vec2 translated by an offset, where the input relative offset Vec2 is rotated according to the input rotation in degrees.</td> <td class="summary">Get a copy of this Vec2 translated by an offset, where the input relative offset Vec2 is rotated according to the input rotation in degrees.</td>
</tr> </tr>
<tr> <tr>
@ -186,6 +182,10 @@
<td class="name" ><a href="#Vec2:Length">Vec2:Length()</a></td> <td class="name" ><a href="#Vec2:Length">Vec2:Length()</a></td>
<td class="summary">Get the length of this Vec2.</td> <td class="summary">Get the length of this Vec2.</td>
</tr> </tr>
<tr>
<td class="name" ><a href="#__tostring">__tostring(This)</a></td>
<td class="summary">Metafunction.</td>
</tr>
</table> </table>
<br/> <br/>
@ -288,34 +288,6 @@
</dd>
<dt>
<a name = "__tostring"></a>
<strong>__tostring(This)</strong>
</dt>
<dd>
Metafunction. Use tostring(vector).
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">This</span>
<span class="types"><a class="type" href="../3 primitive classes/Vec2.html#">Vec2</a></span>
Vec2.
</li>
</ul>
<h3>Returns:</h3>
<ol>
<span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span>
A string showing the X and Y components of the Vec2.
</ol>
</dd> </dd>
<dt> <dt>
<a name = "Vec2:Normalize"></a> <a name = "Vec2:Normalize"></a>
@ -339,8 +311,8 @@
</dd> </dd>
<dt> <dt>
<a name = "Translate"></a> <a name = "Vec2:Translate"></a>
<strong>Translate(dir, dist)</strong> <strong>Vec2:Translate(dir, dist)</strong>
</dt> </dt>
<dd> <dd>
Get a copy of this Vec2 translated in the input Vec2 direction by the input distance. Get a copy of this Vec2 translated in the input Vec2 direction by the input distance.
@ -371,8 +343,8 @@
</dd> </dd>
<dt> <dt>
<a name = "Translate"></a> <a name = "Vec2:Translate"></a>
<strong>Translate(rot, dist)</strong> <strong>Vec2:Translate(rot, dist)</strong>
</dt> </dt>
<dd> <dd>
Get a copy of this Vec2 translated in the direction of the input rotation in degrees by the input distance. Get a copy of this Vec2 translated in the direction of the input rotation in degrees by the input distance.
@ -403,8 +375,8 @@
</dd> </dd>
<dt> <dt>
<a name = "Translate"></a> <a name = "Vec2:Translate"></a>
<strong>Translate(rot, relOffset)</strong> <strong>Vec2:Translate(rot, relOffset)</strong>
</dt> </dt>
<dd> <dd>
Get a copy of this Vec2 translated by an offset, where the input relative offset Vec2 is rotated according to the input rotation in degrees. Get a copy of this Vec2 translated by an offset, where the input relative offset Vec2 is rotated according to the input rotation in degrees.
@ -598,6 +570,34 @@
</dd>
<dt>
<a name = "__tostring"></a>
<strong>__tostring(This)</strong>
</dt>
<dd>
Metafunction. Use tostring(vector).
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">This</span>
<span class="types"><a class="type" href="../3 primitive classes/Vec2.html#">Vec2</a></span>
Vec2.
</li>
</ul>
<h3>Returns:</h3>
<ol>
<span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span>
A string showing the X and Y components of the Vec2.
</ol>
</dd> </dd>
</dl> </dl>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>
@ -116,9 +116,7 @@
<h1>Enum <code>Effects.ParticleAnimationType</code></h1> <h1>Enum <code>Effects.ParticleAnimationType</code></h1>
<p>Constants for particle animation type constants.</p> <p>Constants for particle animation type constants.</p>
<p> <p> To be used with <a href="../1 modules/Effects.html#EmitAdvancedParticle">Effects.EmitAdvancedParticle</a> function.</p>
</p>
<h2><a href="#Tables">Tables</a></h2> <h2><a href="#Tables">Tables</a></h2>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="../3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="../3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="../3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="../3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="../3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="../3 primitive classes/Color.html">Color</a></li> <li> <a href="../3 primitive classes/Color.html">Color</a></li>
<li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="../3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="../3 primitive classes/Time.html">Time</a></li> <li> <a href="../3 primitive classes/Time.html">Time</a></li>

View file

@ -3,7 +3,7 @@
<html> <html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head> <head>
<title>TombEngine 1.7.2 (Developer) Lua API</title> <title>TombEngine 1.8 Lua API</title>
<link rel="stylesheet" href="ldoc.css" type="text/css" /> <link rel="stylesheet" href="ldoc.css" type="text/css" />
</head> </head>
<body> <body>
@ -68,7 +68,7 @@
<li> <a href="3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li> <li> <a href="3 primitive classes/Flow.InventoryItem.html">Flow.InventoryItem</a></li>
<li> <a href="3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li> <li> <a href="3 primitive classes/Flow.LensFlare.html">Flow.LensFlare</a></li>
<li> <a href="3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li> <li> <a href="3 primitive classes/Flow.SkyLayer.html">Flow.SkyLayer</a></li>
<li> <a href="3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></li> <li> <a href="3 primitive classes/Flow.StarField.html">Flow.StarField</a></li>
<li> <a href="3 primitive classes/Color.html">Color</a></li> <li> <a href="3 primitive classes/Color.html">Color</a></li>
<li> <a href="3 primitive classes/Rotation.html">Rotation</a></li> <li> <a href="3 primitive classes/Rotation.html">Rotation</a></li>
<li> <a href="3 primitive classes/Time.html">Time</a></li> <li> <a href="3 primitive classes/Time.html">Time</a></li>
@ -115,25 +115,25 @@
<div id="content"> <div id="content">
<h2>TombEngine 1.7.2 (Developer) scripting interface</h2> <h2>TombEngine 1.8 scripting interface</h2>
<p>Welcome to the TombEngine scripting API. This is a work in progress and some information might be wrong or outdated. Please also note that this is primarily a reference document, not a tutorial, so expect descriptions to be fairly sparse.</p> <p>Welcome to the TombEngine scripting API.</p>
<p>At the time of writing, there is a tutorial describing the basics of Lua, as well as a number of example scripts, on <a href="https://www.tombengine.com">the TombEngine website</a>.</p> <p>Note that this is primarily a reference document, not a tutorial, so expect descriptions to be fairly sparse.
<h4>Module Hierarchy (boring but important)</h4> At the time of writing, there is a tutorial describing the basics of Lua, as well as a number of example scripts, on <a href="https://www.tombengine.com">the TombEngine website</a>.</p>
<p>Other than the "special tables" (GameVars, LevelVars and LevelFuncs), every module described herein is held in a master table called TEN.
<h4>Module Hierarchy</h4>
<p>Other than the "special tables" (<code>GameVars</code>, <code>LevelVars</code> and <code>LevelFuncs</code>), every module described herein is held in a master table called TEN.
For convenience, these modules and classes are automatically put in the global table. For example, you can call GetMoveableByName either of these two ways:</p> For convenience, these modules and classes are automatically put in the global table. For example, you can call GetMoveableByName either of these two ways:</p>
<pre><code>local door = TEN.Objects.GetMoveableByName("door_type4_14") <pre><code>local door = TEN.Objects.GetMoveableByName("door_type4_14")
local door = GetMoveableByName("door_type4_14") local door = GetMoveableByName("door_type4_14")
</code></pre> </code></pre>
<h4>Always check logs/TENLog.txt</h4> <h4>Always check logs/TENLog.txt</h4>
<p>If you are scripting levels, TombEngine will often kick you back to the title screen, even if <code>errorMode</code> (see Flow.Settings) is set to <code>ErrorMode.WARN</code> or <code>ErrorMode.SILENT</code>.</p> <p>If you are scripting levels, TombEngine will often kick you back to the title screen, even if <code>errorMode</code> (see <a href="2 classes/Flow.Settings.html#">Flow.Settings</a>) is set to <code>ErrorMode.WARN</code> or <code>ErrorMode.SILENT</code>.</p>
<p>This might get annoying, but it's on purpose. If your Lua script contains a syntax error (e.g. you're missing <code>end</code> at the end of a function), the Lua interpreter will not be able to continue running the script. If it tried to keep running, you'd probably see some pretty strange behaviour, and would possibly get a crash regardless.</p> <p>This might get annoying, but it's on purpose. If your Lua script contains a syntax error (e.g. you're missing <code>end</code> at the end of a function), the Lua interpreter will not be able to continue running the script. If it tried to keep running, you'd probably see some pretty strange behaviour, and would possibly get a crash regardless. If this happens, check <strong>logs/TENLog.txt</strong> and look for an error message with the word "unrecoverable".</p>
<p>If this happens, check <strong>logs/TENLog.txt</strong> and look for an error message with the word "unrecoverable".</p> <p>Happy building!</p>
<p>Enjoy.</p>
<p>- <em>squidshire and the TombEngine development team.</em></p> <p>- <em>squidshire and the TombEngine development team.</em></p>
@ -247,7 +247,7 @@ local door = GetMoveableByName("door_type4_14")
<table class="module_list"> <table class="module_list">
<tr> <tr>
<td class="name" ><a href="3 primitive classes/Flow.Fog.html">Flow.Fog</a></td> <td class="name" ><a href="3 primitive classes/Flow.Fog.html">Flow.Fog</a></td>
<td class="summary">Distance fog.</td> <td class="summary">Represesnts distance fog.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="3 primitive classes/Flow.Horizon.html">Flow.Horizon</a></td> <td class="name" ><a href="3 primitive classes/Flow.Horizon.html">Flow.Horizon</a></td>
@ -266,8 +266,8 @@ local door = GetMoveableByName("door_type4_14")
<td class="summary">Describes a layer of moving clouds.</td> <td class="summary">Describes a layer of moving clouds.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="3 primitive classes/Flow.Starfield.html">Flow.Starfield</a></td> <td class="name" ><a href="3 primitive classes/Flow.StarField.html">Flow.StarField</a></td>
<td class="summary">Represents a starfield in the sky.</td> <td class="summary">Represents a star field in the sky.</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="3 primitive classes/Color.html">Color</a></td> <td class="name" ><a href="3 primitive classes/Color.html">Color</a></td>

View file

@ -232,52 +232,65 @@ namespace TEN::Effects::Environment
void EnvironmentController::UpdateStarfield(const ScriptInterfaceLevel& level) void EnvironmentController::UpdateStarfield(const ScriptInterfaceLevel& level)
{ {
if (!level.GetStarfieldStarsEnabled()) int starCount = level.GetStarfieldStarCount();
if (starCount == 0)
return; return;
if (ResetStarField) if (ResetStarField)
{ {
int starCount = level.GetStarfieldStarCount();
Stars.clear(); Stars.clear();
Stars.reserve(starCount); ResetStarField = false;
}
for (int i = 0; i < starCount; i++) if (starCount != Stars.size())
{
// If starCount increased, add new stars to existing list.
if (starCount > Stars.size())
{ {
auto starDir = Random::GenerateDirectionInCone(-Vector3::UnitY, 70.0f); // Reserve space for new stars if necessary.
starDir.Normalize(); Stars.reserve(starCount);
auto star = StarParticle{}; for (int i = (int)Stars.size(); i < starCount; i++)
star.Direction = starDir;
star.Color = Vector3(
Random::GenerateFloat(0.6f, 1.0f),
Random::GenerateFloat(0.6f, 1.0f),
Random::GenerateFloat(0.6f, 1.0f));
star.Scale = Random::GenerateFloat(0.5f, 1.5f);
float cosine = Vector3::UnitY.Dot(starDir);
float maxCosine = cos(DEG_TO_RAD(50.0f));
float minCosine = cos(DEG_TO_RAD(70.0f));
if (cosine >= minCosine && cosine <= maxCosine)
{ {
star.Extinction = (cosine - minCosine) / (maxCosine - minCosine); auto starDir = Random::GenerateDirectionInCone(-Vector3::UnitY, 70.0f);
} starDir.Normalize();
else
{
star.Extinction = 1.0f;
}
Stars.push_back(star); auto star = StarParticle{};
star.Direction = starDir;
star.Color = Vector3(
Random::GenerateFloat(0.6f, 1.0f),
Random::GenerateFloat(0.6f, 1.0f),
Random::GenerateFloat(0.6f, 1.0f));
star.Scale = Random::GenerateFloat(0.5f, 1.5f);
float cosine = Vector3::UnitY.Dot(starDir);
float maxCosine = cos(DEG_TO_RAD(50.0f));
float minCosine = cos(DEG_TO_RAD(70.0f));
if (cosine >= minCosine && cosine <= maxCosine)
{
star.Extinction = (cosine - minCosine) / (maxCosine - minCosine);
}
else
{
star.Extinction = 1.0f;
}
Stars.push_back(star);
}
}
// If starCount decreased, resize vector without reinitializing.
else
{
Stars.resize(starCount);
} }
ResetStarField = false;
} }
for (auto& star : Stars) for (auto& star : Stars)
star.Blinking = Random::GenerateFloat(0.5f, 1.0f); star.Blinking = Random::GenerateFloat(0.5f, 1.0f);
if (level.GetStarfieldMeteorsEnabled()) if (level.GetStarfieldMeteorCount() > 0)
{ {
for (auto& meteor : Meteors) for (auto& meteor : Meteors)
{ {
@ -639,7 +652,7 @@ namespace TEN::Effects::Environment
Meteors.end()); Meteors.end());
} }
if (!level.GetStarfieldMeteorsEnabled()) if (level.GetStarfieldMeteorCount() == 0)
return; return;
int density = level.GetStarfieldMeteorSpawnDensity(); int density = level.GetStarfieldMeteorSpawnDensity();

View file

@ -62,8 +62,6 @@ public:
virtual Color GetLensFlareColor() const = 0; virtual Color GetLensFlareColor() const = 0;
// Starfield getters // Starfield getters
virtual bool GetStarfieldStarsEnabled() const = 0;
virtual bool GetStarfieldMeteorsEnabled() const = 0;
virtual int GetStarfieldStarCount() const = 0; virtual int GetStarfieldStarCount() const = 0;
virtual int GetStarfieldMeteorCount() const = 0; virtual int GetStarfieldMeteorCount() const = 0;
virtual int GetStarfieldMeteorSpawnDensity() const = 0; virtual int GetStarfieldMeteorSpawnDensity() const = 0;

View file

@ -433,25 +433,6 @@ constexpr char ScriptReserved_ProbePreview[] = "Preview";
constexpr char ScriptReserved_MaterialType[] = "MaterialType"; constexpr char ScriptReserved_MaterialType[] = "MaterialType";
// ====
// FLOW
// ====
// Horizon
constexpr char ScriptReserved_Horizon[] = "Horizon";
constexpr char ScriptReserved_HorizonGetEnabled[] = "GetEnabled";
constexpr char ScriptReserved_HorizonGetObjectID[] = "GetObjectID";
constexpr char ScriptReserved_HorizonGetPosition[] = "GetPosition";
constexpr char ScriptReserved_HorizonGetRotation[] = "GetRotation";
constexpr char ScriptReserved_HorizonGetTransparency[] = "GetTransparency";
constexpr char ScriptReserved_HorizonSetEnabled[] = "SetEnabled";
constexpr char ScriptReserved_HorizonSetObjectID[] = "SetObjectID";
constexpr char ScriptReserved_HorizonSetPosition[] = "SetPosition";
constexpr char ScriptReserved_HorizonSetRotation[] = "SetRotation";
constexpr char ScriptReserved_HorizonSetTransparency[] = "SetTransparency";
// ======= // =======
// OBJECTS // OBJECTS
// ======= // =======

View file

@ -4,7 +4,7 @@
namespace TEN::Scripting::Effects namespace TEN::Scripting::Effects
{ {
/// Constants for particle animation type constants. /// Constants for particle animation type constants. To be used with @{Effects.EmitAdvancedParticle} function.
// @enum Effects.ParticleAnimationType // @enum Effects.ParticleAnimationType
// @pragma nostrip // @pragma nostrip

View file

@ -6,7 +6,7 @@
using namespace TEN::Scripting::Types; using namespace TEN::Scripting::Types;
/*** /***
Distance fog. Represesnts distance fog. To be used with @{Flow.Level.fog} property.
@tenprimitive Flow.Fog @tenprimitive Flow.Fog
@pragma nostrip @pragma nostrip

View file

@ -9,7 +9,7 @@
namespace TEN::Scripting namespace TEN::Scripting
{ {
/// Represents a horizon. /// Represents a horizon. To be used with @{Flow.Level.horizon1} and @{Flow.Level.horizon2} properties.
// //
// @tenprimitive Flow.Horizon // @tenprimitive Flow.Horizon
// @pragma nostrip // @pragma nostrip
@ -22,22 +22,32 @@ namespace TEN::Scripting
// Register type. // Register type.
parent.new_usertype<Horizon>( parent.new_usertype<Horizon>(
ScriptReserved_Horizon, "Horizon",
ctors(), sol::call_constructor, ctors(), ctors(), sol::call_constructor, ctors(),
// Getters /// (bool) Horizon enabled state.
ScriptReserved_HorizonGetEnabled, &Horizon::GetEnabled, // If set to true, horizon will be visible.
ScriptReserved_HorizonGetObjectID, &Horizon::GetObjectID, // @mem enabled
ScriptReserved_HorizonGetPosition, &Horizon::GetPosition, "enabled", sol::property(&Horizon::GetEnabled, &Horizon::SetEnabled),
ScriptReserved_HorizonGetRotation, &Horizon::GetRotation,
ScriptReserved_HorizonGetTransparency, &Horizon::GetTransparency,
// Setters /// (Objects.ObjID) Horizon object ID.
ScriptReserved_HorizonSetEnabled, &Horizon::SetEnabled, // @mem objectID
ScriptReserved_HorizonSetObjectID, &Horizon::SetObjectID, "objectID", sol::property(&Horizon::GetObjectID, &Horizon::SetObjectID),
ScriptReserved_HorizonSetPosition, &Horizon::SetPosition,
ScriptReserved_HorizonSetRotation, &Horizon::SetRotation, /// (Vec3) Horizon position.
ScriptReserved_HorizonSetTransparency, &Horizon::SetTransparency); // Specifies an offset from the camera origin.
// @mem position
"position", sol::property(&Horizon::GetPosition, &Horizon::SetPosition),
/// (Rotation) Horizon rotation.
// Specifies horizon rotation.
// @mem rotation
"rotation", sol::property(&Horizon::GetRotation, &Horizon::SetRotation),
/// (float) Horizon transparency.
// Specifies horizon transparency on a range from 0 to 1.
// @mem transparency
"transparency", sol::property(&Horizon::GetTransparency, &Horizon::SetTransparency));
} }
/// Create a horizon object. /// Create a horizon object.
@ -56,89 +66,53 @@ namespace TEN::Scripting
_enabled = enabled; _enabled = enabled;
} }
/// Get the horizon's enabled state.
// @function GetEnabled
// @treturn bool Enabled state.
bool Horizon::GetEnabled() const bool Horizon::GetEnabled() const
{ {
return _enabled; return _enabled;
} }
/// Get the horizon's slot object ID.
// @function GetObjectID
// @treturn Objects.ObjID Object ID.
GAME_OBJECT_ID Horizon::GetObjectID() const GAME_OBJECT_ID Horizon::GetObjectID() const
{ {
return _objectID; return _objectID;
} }
/// Get the horizon's world position.
// @function GetPosition
// @treturn Vec3 Position.
const Vec3 Horizon::GetPosition() const const Vec3 Horizon::GetPosition() const
{ {
return _position; return _position;
} }
/// Get the horizon's rotation.
// @function GetRotation
// @treturn Rotation Rotation.
const Rotation Horizon::GetRotation() const const Rotation Horizon::GetRotation() const
{ {
return _rotation; return _rotation;
} }
/// Get the horizon's transparency.
// @function GetTransparency
// @treturn float Transparency.
const float Horizon::GetTransparency() const const float Horizon::GetTransparency() const
{ {
return _transparency; return _transparency;
} }
/// Set the horizon's enabled state.
// @function SetEnabled
// @tparam bool enabled New enabled state.
void Horizon::SetEnabled(bool value) void Horizon::SetEnabled(bool value)
{ {
_enabled = value; _enabled = value;
} }
/// Set the horizon's object ID.
// @function SetObjectID
// @tparam Objects.ObjID objectID Object ID.
void Horizon::SetObjectID(GAME_OBJECT_ID objectID) void Horizon::SetObjectID(GAME_OBJECT_ID objectID)
{ {
_objectID = objectID; _objectID = objectID;
} }
/// Set the horizon's world position.
// @function SetPosition
// @tparam Vec3 pos New world position.
// @tparam[opt] bool noInterpolation Disable interpolation with the previous frame's position. __default: false__
void Horizon::SetPosition(const Vec3& pos, TypeOrNil<bool> noInterpolation) void Horizon::SetPosition(const Vec3& pos, TypeOrNil<bool> noInterpolation)
{ {
bool convertedDisableInterp = ValueOr<bool>(noInterpolation, false); _prevPosition = ValueOr<bool>(noInterpolation, false) ? pos : _position;
_prevPosition = convertedDisableInterp ? pos : _position;
_position = pos; _position = pos;
} }
/// Set the horizon's rotation.
// @function SetRotation
// @tparam Rotation rot New rotation.
// @tparam[opt] bool noInterpolation Disable interpolation with the previous frame's rotation. __default: false__
void Horizon::SetRotation(const Rotation& rot, TypeOrNil<bool> noInterpolation) void Horizon::SetRotation(const Rotation& rot, TypeOrNil<bool> noInterpolation)
{ {
bool convertedDisableInterp = ValueOr<bool>(noInterpolation, false); _prevRotation = ValueOr<bool>(noInterpolation, false) ? rot : _rotation;
_prevRotation = convertedDisableInterp ? rot : _rotation;
_rotation = rot; _rotation = rot;
} }
/// Set the horizon's transparency.
// @function SetTransparency
// @tparam float transparency New transparency alpha.
void Horizon::SetTransparency(float value) void Horizon::SetTransparency(float value)
{ {
_transparency = value; _transparency = value;

View file

@ -4,9 +4,7 @@
#include "Scripting/Internal/ReservedScriptNames.h" #include "Scripting/Internal/ReservedScriptNames.h"
#include "Scripting/Internal/ScriptAssert.h" #include "Scripting/Internal/ScriptAssert.h"
/*** /*** Represents the properties of an object as it appears in the inventory. To be used in @{Flow.Level.objects} list.
Represents the properties of an object as it appears in the inventory.
@tenprimitive Flow.InventoryItem @tenprimitive Flow.InventoryItem
@pragma nostrip @pragma nostrip
*/ */

View file

@ -8,7 +8,7 @@
using namespace TEN::Scripting::Types; using namespace TEN::Scripting::Types;
/// Represents a global lens flare (not to be confused with the lens flare object). /// Represents a global lens flare (not to be confused with the lens flare object). To be used with @{Flow.Level.lensFlare} property.
// //
// @tenprimitive Flow.LensFlare // @tenprimitive Flow.LensFlare
// @pragma nostrip // @pragma nostrip
@ -25,16 +25,39 @@ namespace TEN::Scripting
"LensFlare", "LensFlare",
ctors(), sol::call_constructor, ctors(), ctors(), sol::call_constructor, ctors(),
/// (bool) Lens flare enabled state.
// If set to true, lens flare will be visible.
// @mem enabled
"enabled", sol::property(&LensFlare::GetEnabled, &LensFlare::SetEnabled),
/// (int) Lens flare's sun sprite object ID.
// @mem spriteID
"spriteID", sol::property(&LensFlare::GetSunSpriteID, &LensFlare::SetSunSpriteID),
/// (float) Lens flare's pitch (vertical) angle in degrees.
// @mem pitch
"pitch", sol::property(&LensFlare::GetPitch, &LensFlare::SetPitch),
/// (float) Lens flare's yaw (horizontal) angle in degrees.
// @mem yaw
"yaw", sol::property(&LensFlare::GetYaw, &LensFlare::SetYaw),
/// (Color) Lens flare's color.
// @mem color
"color", sol::property(&LensFlare::GetColor, &LensFlare::SetColor),
// Compatibility.
"GetSunSpriteID", &LensFlare::GetSunSpriteID, "GetSunSpriteID", &LensFlare::GetSunSpriteID,
"GetPitch", &LensFlare::GetPitch, "GetPitch", &LensFlare::GetPitch,
"GetYaw", &LensFlare::GetYaw, "GetYaw", &LensFlare::GetYaw,
"GetColor", &LensFlare::GetColor, "GetColor", &LensFlare::GetColor,
"GetEnabled", &LensFlare::GetEnabledStatus, "GetEnabled", &LensFlare::GetEnabled,
"SetSunSpriteID", &LensFlare::SetSunSpriteID, "SetSunSpriteID", &LensFlare::SetSunSpriteID,
"SetPitch", &LensFlare::SetPitch, "SetPitch", &LensFlare::SetPitch,
"SetYaw", &LensFlare::SetYaw, "SetYaw", &LensFlare::SetYaw,
"SetColor", &LensFlare::SetColor); "SetColor", &LensFlare::SetColor,
"SetEnabled", &LensFlare::SetEnabled);
} }
/// Create a LensFlare object. /// Create a LensFlare object.
@ -50,48 +73,31 @@ namespace TEN::Scripting
_rotation = Rotation(pitch, yaw, 0.0f); _rotation = Rotation(pitch, yaw, 0.0f);
} }
/// Get this lens flare's sun sprite ID.
// @function LensFlare:GetSunSpriteID
// @treturn int Sprite ID.
int LensFlare::GetSunSpriteID() const int LensFlare::GetSunSpriteID() const
{ {
return _sunSpriteID; return _sunSpriteID;
} }
/// Get this lens flare's pitch angle in degrees.
// @function LensFlare:GetPitch
// @treturn float Pitch angle in degrees.
float LensFlare::GetPitch() const float LensFlare::GetPitch() const
{ {
return _rotation.x; return _rotation.x;
} }
/// Get this lens flare's yaw angle in degrees.
// @function LensFlare:GetYaw
// @treturn float Yaw angle in degrees.
float LensFlare::GetYaw() const float LensFlare::GetYaw() const
{ {
return _rotation.y; return _rotation.y;
} }
/// Get the lens flare's color.
// @function LensFlare:GetColor
ScriptColor LensFlare::GetColor() const ScriptColor LensFlare::GetColor() const
{ {
return _color; return _color;
} }
/// Get this lens flare's enabled status. bool LensFlare::GetEnabled() const
// @function LensFlare:GetEnabled
// @treturn bool Enabled status. __true: enabled__, __false: disabled__
bool LensFlare::GetEnabledStatus() const
{ {
return _isEnabled; return _isEnabled;
} }
/// Set this lens flare's sun sprite ID.
// @function LensFlare:SetSunSpriteID
// @tparam int spriteID New sun sprite ID.
void LensFlare::SetSunSpriteID(int spriteID) void LensFlare::SetSunSpriteID(int spriteID)
{ {
// Sprite ID out of range; return early. // Sprite ID out of range; return early.
@ -104,27 +110,23 @@ namespace TEN::Scripting
_sunSpriteID = spriteID; _sunSpriteID = spriteID;
} }
/// Set this lens flare's pitch angle.
// @function LensFlare:SetPitch
// @tparam float pitch New pitch angle in degrees.
void LensFlare::SetPitch(float pitch) void LensFlare::SetPitch(float pitch)
{ {
_rotation.x = pitch; _rotation.x = pitch;
} }
/// Set this lens flare's yaw angle.
// @function LensFlare:SetYaw
// @tparam float yaw New yaw angle in degrees.
void LensFlare::SetYaw(float yaw) void LensFlare::SetYaw(float yaw)
{ {
_rotation.y = yaw; _rotation.y = yaw;
} }
/// Set this lens flare's color.
// @function LensFlare:SetColor
// @tparam Color color New color.
void LensFlare::SetColor(const ScriptColor& color) void LensFlare::SetColor(const ScriptColor& color)
{ {
_color = color; _color = color;
} }
void LensFlare::SetEnabled(bool value)
{
_isEnabled = value;
}
} }

View file

@ -39,7 +39,7 @@ namespace TEN::Scripting
float GetPitch() const; float GetPitch() const;
float GetYaw() const; float GetYaw() const;
ScriptColor GetColor() const; ScriptColor GetColor() const;
bool GetEnabledStatus() const; bool GetEnabled() const;
// Setters // Setters
@ -47,5 +47,6 @@ namespace TEN::Scripting
void SetPitch(float pitch); void SetPitch(float pitch);
void SetYaw(float yaw); void SetYaw(float yaw);
void SetColor(const ScriptColor& color); void SetColor(const ScriptColor& color);
void SetEnabled(bool value);
}; };
} }

View file

@ -15,7 +15,7 @@ These are things things which aren't present in the compiled level file itself.
/// Make a new Level object. /// Make a new Level object.
//@function Level //@function Level
//@treturn Level a Level object //@treturn Level a Level object.
void Level::Register(sol::table& parent) void Level::Register(sol::table& parent)
{ {
// Register type. // Register type.
@ -49,11 +49,11 @@ void Level::Register(sol::table& parent)
//@mem ambientTrack //@mem ambientTrack
"ambientTrack", &Level::AmbientTrack, "ambientTrack", &Level::AmbientTrack,
/// (@{Flow.SkyLayer}) Primary sky layer /// (@{Flow.SkyLayer}) Primary sky cloud layer.
//@mem layer1 //@mem layer1
"layer1", &Level::Layer1, "layer1", &Level::Layer1,
/// (@{Flow.SkyLayer}) Secondary sky layer /// (@{Flow.SkyLayer}) Secondary sky cloud layer.
//@mem layer2 //@mem layer2
"layer2", &Level::Layer2, "layer2", &Level::Layer2,
@ -63,20 +63,20 @@ void Level::Register(sol::table& parent)
"horizon", sol::property(&Level::GetHorizon1Enabled, &Level::SetHorizon1Enabled), // Compatibility. "horizon", sol::property(&Level::GetHorizon1Enabled, &Level::SetHorizon1Enabled), // Compatibility.
/// (@{Flow.Horizon}) Second horizon layer. /// (@{Flow.Horizon}) Second horizon layer.
//@mem horizon1 //@mem horizon2
"horizon2", &Level::Horizon2, "horizon2", &Level::Horizon2,
/// (@{Flow.Starfield}) Starfield. /// (@{Flow.StarField}) Starfield in the sky.
// @mem starfield // @mem starField
"starfield", &Level::Starfield, "starField", &Level::Starfield,
"starfield", &Level::Starfield, // Compatibility.
/// (@{Flow.LensFlare}) Global lens flare . /// (@{Flow.LensFlare}) Global lens flare.
// @mem lensFlare // @mem lensFlare
"lensFlare", &Level::LensFlare, "lensFlare", &Level::LensFlare,
/// (@{Flow.Fog}) omni fog RGB color and distance. /// (@{Flow.Fog}) Global distance fog, with specified RGB color and distance.
// As seen in TR4's Desert Railroad. // If not provided, distance fog will not be visible.
// If not provided, distance fog will be black.
//@mem fog //@mem fog
"fog", &Level::Fog, "fog", &Level::Fog,
@ -126,11 +126,11 @@ e.g. `myLevel.laraType = LaraType.Divesuit`
//@mem resetHub //@mem resetHub
"resetHub", &Level::ResetHub, "resetHub", &Level::ResetHub,
/// (table of @{Flow.InventoryItem}s) table of inventory object overrides /// (table of @{Flow.InventoryItem}s) A table of inventory object layout overrides.
//@mem objects //@mem objects
"objects", &Level::InventoryObjects, "objects", &Level::InventoryObjects,
/// (short) Set Secrets for Level /// (short) Set total secret count for current level.
//@mem secrets //@mem secrets
"secrets", sol::property(&Level::GetSecrets, &Level::SetSecrets) "secrets", sol::property(&Level::GetSecrets, &Level::SetSecrets)
); );
@ -308,7 +308,7 @@ EulerAngles Level::GetHorizonPrevOrientation(int index) const
bool Level::GetLensFlareEnabled() const bool Level::GetLensFlareEnabled() const
{ {
return LensFlare.GetEnabledStatus(); return LensFlare.GetEnabled();
} }
int Level::GetLensFlareSunSpriteID() const int Level::GetLensFlareSunSpriteID() const
@ -331,16 +331,6 @@ Color Level::GetLensFlareColor() const
return LensFlare.GetColor(); return LensFlare.GetColor();
} }
bool Level::GetStarfieldStarsEnabled() const
{
return Starfield.GetStarsEnabledStatus();
}
bool Level::GetStarfieldMeteorsEnabled() const
{
return Starfield.GetMeteorsEnabledStatus();
}
int Level::GetStarfieldStarCount() const int Level::GetStarfieldStarCount() const
{ {
return Starfield.GetStarCount(); return Starfield.GetStarCount();

View file

@ -93,8 +93,6 @@ struct Level : public ScriptInterfaceLevel
Color GetLensFlareColor() const override; Color GetLensFlareColor() const override;
// Starfield getters // Starfield getters
bool GetStarfieldStarsEnabled() const override;
bool GetStarfieldMeteorsEnabled() const override;
int GetStarfieldStarCount() const override; int GetStarfieldStarCount() const override;
int GetStarfieldMeteorCount() const override; int GetStarfieldMeteorCount() const override;
int GetStarfieldMeteorSpawnDensity() const override; int GetStarfieldMeteorSpawnDensity() const override;

View file

@ -7,9 +7,7 @@ namespace TEN::Scripting::Types { class ScriptColor; }
using namespace TEN::Scripting::Types; using namespace TEN::Scripting::Types;
/*** Describes a layer of moving clouds. /*** Describes a layer of moving clouds. To be used with @{Flow.Level.layer1} and @{Flow.Level.layer2} properties.
As seen in TR4's City of the Dead.
@tenprimitive Flow.SkyLayer @tenprimitive Flow.SkyLayer
@pragma nostrip @pragma nostrip
*/ */

View file

@ -6,9 +6,8 @@
using namespace TEN::Effects::Environment; using namespace TEN::Effects::Environment;
/// Represents a starfield in the sky. /// Represents a star field in the sky. To be used with @{Flow.Level.starField} property.
// // @tenprimitive Flow.StarField
// @tenprimitive Flow.Starfield
// @pragma nostrip // @pragma nostrip
namespace TEN::Scripting namespace TEN::Scripting
@ -21,38 +20,55 @@ namespace TEN::Scripting
// Register type. // Register type.
parent.new_usertype<Starfield>( parent.new_usertype<Starfield>(
"Starfield", "StarField",
ctors(), sol::call_constructor, ctors(), ctors(), sol::call_constructor, ctors(),
/// (int) Amount of visible stars.
// @mem starCount
"starCount", sol::property(&Starfield::GetStarCount, &Starfield::SetStarCount),
/// (int) Amount of visible meteors.
// @mem meteorCount
"meteorCount", sol::property(&Starfield::GetMeteorCount, &Starfield::SetMeteorCount),
/// (int) Meteor spawn density.
// @mem meteorSpawnDensity
"meteorSpawnDensity", sol::property(&Starfield::GetMeteorSpawnDensity, &Starfield::SetMeteorSpawnDensity),
/// (int) Meteor velocity.
// @mem meteorVelocity
"meteorVelocity", sol::property(&Starfield::GetMeteorVelocity, &Starfield::SetMeteorVelocity),
// Compatibility.
"GetStarCount", &Starfield::GetStarCount, "GetStarCount", &Starfield::GetStarCount,
"GetMeteorCount", &Starfield::GetMeteorCount, "GetMeteorCount", &Starfield::GetMeteorCount,
"GetMeteorSpawnDensity", &Starfield::GetMeteorSpawnDensity, "GetMeteorSpawnDensity", &Starfield::GetMeteorSpawnDensity,
"GetMeteorVelocity", &Starfield::GetMeteorVelocity, "GetMeteorVelocity", &Starfield::GetMeteorVelocity,
"GetStarsEnabled", &Starfield::GetStarsEnabledStatus,
"GetMeteorsEnabled", &Starfield::GetMeteorsEnabledStatus,
"SetStarCount", &Starfield::SetStarCount, "SetStarCount", &Starfield::SetStarCount,
"SetMeteorCount", &Starfield::SetMeteorCount, "SetMeteorCount", &Starfield::SetMeteorCount,
"SetMeteorSpawnDensity", &Starfield::SetMeteorSpawnDensity, "SetMeteorSpawnDensity", &Starfield::SetMeteorSpawnDensity,
"SetMeteorVelocity", &Starfield::SetMeteorVelocity); "SetMeteorVelocity", &Starfield::SetMeteorVelocity);
parent["StarField"] = parent["Starfield"];
} }
/// Create a starfield object with only stars. /// Create a starfield object with only stars.
// @function Starfield // @function StarField
// @tparam int starCount Star count. // @tparam int starCount Star count.
// @treturn Starfield A new Starfield object. // @treturn Starfield A new StarField object.
Starfield::Starfield(int starCount) Starfield::Starfield(int starCount)
{ {
_starCount = starCount; _starCount = starCount;
} }
/// Create a starfield object with stars and meteors. /// Create a starfield object with stars and meteors.
// @function Starfield // @function StarField
// @tparam int starCount Star count. __Max: 6000__ // @tparam int starCount Star count. __Max: 6000__
// @tparam int meteorCount Meteor count. __Max: 100__ // @tparam int meteorCount Meteor count. __Max: 100__
// @tparam int meteorSpawnDensity Meteor spawn density. // @tparam int meteorSpawnDensity Meteor spawn density.
// @tparam int meteorVel Meteor velocity. // @tparam int meteorVel Meteor velocity.
// @treturn Starfield A new Starfield object. // @treturn StarField A new StarField object.
Starfield::Starfield(int starCount, int meteorCount, int meteorSpawnDensity, float meteorVel) Starfield::Starfield(int starCount, int meteorCount, int meteorSpawnDensity, float meteorVel)
{ {
if (starCount < 0 || starCount > STAR_COUNT_MAX) if (starCount < 0 || starCount > STAR_COUNT_MAX)
@ -67,57 +83,26 @@ namespace TEN::Scripting
_meteorVelocity = meteorVel; _meteorVelocity = meteorVel;
} }
/// Get this starfield's number of stars.
// @function Starfield:GetStarCount
// @treturn int Count.
int Starfield::GetStarCount() const int Starfield::GetStarCount() const
{ {
return _starCount; return _starCount;
} }
/// Get this starfield's number of meteors.
// @function Starfield:GetMeteorCount
// @treturn int Count.
int Starfield::GetMeteorCount() const int Starfield::GetMeteorCount() const
{ {
return _meteorCount; return _meteorCount;
} }
/// Get this starfield's meteor spawn density.
// @function Starfield:GetMeteorSpawnDensity
// @treturn int Spawn density.
int Starfield::GetMeteorSpawnDensity() const int Starfield::GetMeteorSpawnDensity() const
{ {
return _meteorSpawnDensity; return _meteorSpawnDensity;
} }
/// Get this starfield's meteor velocity.
// @function Starfield:GetMeteorVelocity
// @treturn float Velocity.
float Starfield::GetMeteorVelocity() const float Starfield::GetMeteorVelocity() const
{ {
return _meteorVelocity; return _meteorVelocity;
} }
/// Get this starfield's stars enabled status.
// @function Starfield:GetStarsEnabled
// @treturn bool Stars enabled status. __true: enabled__, __false: disabled__
bool Starfield::GetStarsEnabledStatus() const
{
return (_starCount > 0);
}
/// Get this starfield's meteors enabled status.
// @function Starfield:GetMeteorsEnabled
// @treturn bool Meteors enabled status. __true: enabled__, __false: disabled__
bool Starfield::GetMeteorsEnabledStatus() const
{
return (_meteorCount > 0);
}
/// Set this starfield's number of stars.
// @function Starfield:SetStarCount
// @tparam int count New star count.
void Starfield::SetStarCount(int count) void Starfield::SetStarCount(int count)
{ {
if (count < 0 || count > STAR_COUNT_MAX) if (count < 0 || count > STAR_COUNT_MAX)
@ -126,9 +111,6 @@ namespace TEN::Scripting
_starCount = std::clamp(count, 0, STAR_COUNT_MAX); _starCount = std::clamp(count, 0, STAR_COUNT_MAX);
} }
/// Set this starfield's number of meteors.
// @function Starfield:SetMeteorCount
// @tparam int count New meteor count.
void Starfield::SetMeteorCount(int count) void Starfield::SetMeteorCount(int count)
{ {
if (count < 0 || count > METEOR_COUNT_MAX) if (count < 0 || count > METEOR_COUNT_MAX)
@ -137,17 +119,11 @@ namespace TEN::Scripting
_meteorCount = std::clamp(count, 0, METEOR_COUNT_MAX); _meteorCount = std::clamp(count, 0, METEOR_COUNT_MAX);
} }
/// Set this starfield's meteor spawn density.
// @function Starfield:SetMeteorSpawnDensity
// @tparam int density New meteor spawn density.
void Starfield::SetMeteorSpawnDensity(int spawnDensity) void Starfield::SetMeteorSpawnDensity(int spawnDensity)
{ {
_meteorSpawnDensity = spawnDensity; _meteorSpawnDensity = spawnDensity;
} }
/// Set this starfield's meteor velocity.
// @function Starfield:SetMeteorVelocity
// @tparam float velocity New meteor velocity.
void Starfield::SetMeteorVelocity(float vel) void Starfield::SetMeteorVelocity(float vel)
{ {
_meteorVelocity = vel; _meteorVelocity = vel;

View file

@ -35,8 +35,6 @@ namespace TEN::Scripting
int GetMeteorCount() const; int GetMeteorCount() const;
int GetMeteorSpawnDensity() const; int GetMeteorSpawnDensity() const;
float GetMeteorVelocity() const; float GetMeteorVelocity() const;
bool GetStarsEnabledStatus() const;
bool GetMeteorsEnabledStatus() const;
// Setters // Setters

View file

@ -30,7 +30,7 @@ using namespace TEN::Scripting::Types;
// Examples include the player, traps, enemies, doors, and pickups. See also @{Objects.LaraObject} for player-specific features. // Examples include the player, traps, enemies, doors, and pickups. See also @{Objects.LaraObject} for player-specific features.
// //
// @tenclass Objects.Moveable // @tenclass Objects.Moveable
// pragma nostrip // @pragma nostrip
static auto IndexError = IndexErrorMaker(Moveable, ScriptReserved_Moveable); static auto IndexError = IndexErrorMaker(Moveable, ScriptReserved_Moveable);
static auto NewIndexError = NewIndexErrorMaker(Moveable, ScriptReserved_Moveable); static auto NewIndexError = NewIndexErrorMaker(Moveable, ScriptReserved_Moveable);

View file

@ -51,7 +51,7 @@ using namespace TEN::Scripting::Types;
} }
/// Get the room's number. /// Get the room's number.
// @function Room:GetRoomNumber() // @function Room:GetRoomNumber
// @treturn int Room number. // @treturn int Room number.
int Room::GetRoomNumber() const int Room::GetRoomNumber() const
{ {
@ -59,7 +59,7 @@ using namespace TEN::Scripting::Types;
} }
/// Get the room's unique string identifier. /// Get the room's unique string identifier.
// @function Room:GetName() // @function Room:GetName
// @treturn string Room name. // @treturn string Room name.
std::string Room::GetName() const std::string Room::GetName() const
{ {
@ -67,7 +67,7 @@ using namespace TEN::Scripting::Types;
} }
/// Get the room's ambient light color. /// Get the room's ambient light color.
// @function Room:GetColor() // @function Room:GetColor
// @treturn Color Ambient light color. // @treturn Color Ambient light color.
ScriptColor Room::GetColor() const ScriptColor Room::GetColor() const
{ {
@ -75,7 +75,7 @@ using namespace TEN::Scripting::Types;
} }
/// Get the room's reverb type. /// Get the room's reverb type.
// @function Room:GetReverbType() // @function Room:GetReverbType
// @treturn Objects.RoomReverb Reverb type. // @treturn Objects.RoomReverb Reverb type.
ReverbType Room::GetReverbType() const ReverbType Room::GetReverbType() const
{ {
@ -83,7 +83,7 @@ using namespace TEN::Scripting::Types;
} }
/// Set the room's unique string identifier. /// Set the room's unique string identifier.
// @function Room:SetName() // @function Room:SetName
// @tparam string name New name. // @tparam string name New name.
void Room::SetName(const std::string& name) void Room::SetName(const std::string& name)
{ {
@ -104,7 +104,7 @@ using namespace TEN::Scripting::Types;
} }
/// Set the room's reverb type. /// Set the room's reverb type.
// @function Room:SetReverbType() // @function Room:SetReverbType
// @tparam Objects.RoomReverb Reverb type. // @tparam Objects.RoomReverb Reverb type.
void Room::SetReverbType(ReverbType reverb) void Room::SetReverbType(ReverbType reverb)
{ {
@ -112,7 +112,7 @@ using namespace TEN::Scripting::Types;
} }
/// Set the room's specified flag. /// Set the room's specified flag.
// @function Room:SetFlag() // @function Room:SetFlag
// @tparam Objects.RoomFlagID flagID Room flag ID. // @tparam Objects.RoomFlagID flagID Room flag ID.
// @tparam bool Boolean to set the flag to. // @tparam bool Boolean to set the flag to.
void Room::SetFlag(RoomEnvFlags flag, bool value) void Room::SetFlag(RoomEnvFlags flag, bool value)
@ -128,7 +128,7 @@ using namespace TEN::Scripting::Types;
} }
/// Get the room's specified flag value (true or false). /// Get the room's specified flag value (true or false).
// @function Room:GetFlag() // @function Room:GetFlag
// @tparam Objects.RoomFlagID flagID Room flag ID. // @tparam Objects.RoomFlagID flagID Room flag ID.
bool Room::IsTagPresent(const std::string& tag) const bool Room::IsTagPresent(const std::string& tag) const
{ {
@ -144,7 +144,7 @@ using namespace TEN::Scripting::Types;
} }
/// Check if the specified tag is set for the room. /// Check if the specified tag is set for the room.
// @function Room:IsTagPresent() // @function Room:IsTagPresent
// @tparam string tag Text tag to check (case sensitive). // @tparam string tag Text tag to check (case sensitive).
// @treturn bool Boolean of the tag's presence. // @treturn bool Boolean of the tag's presence.
bool Room::GetActive() const bool Room::GetActive() const
@ -153,7 +153,7 @@ using namespace TEN::Scripting::Types;
} }
/// Check if the room is active. /// Check if the room is active.
// @function Room:GetActive() // @function Room:GetActive
// @treturn bool Boolean of the room's active status. // @treturn bool Boolean of the room's active status.
bool Room::GetFlag(RoomEnvFlags flag) const bool Room::GetFlag(RoomEnvFlags flag) const
{ {

View file

@ -14,90 +14,90 @@
namespace TEN::Scripting::Sound namespace TEN::Scripting::Sound
{ {
/// Play an audio track /// Play an audio track. Supported formats are wav, mp3 and ogg.
//@function PlayAudioTrack // @function PlayAudioTrack
//@tparam string name of track (without file extension) to play // @tparam string filename Filename of a track (without file extension) to play.
//@tparam Sound.SoundTrackType type of the audio track to play // @tparam Sound.SoundTrackType type Type of the audio track to play.
static void PlayAudioTrack(const std::string& trackName, TypeOrNil<SoundTrackType> mode) static void PlayAudioTrack(const std::string& trackName, TypeOrNil<SoundTrackType> mode)
{ {
auto playMode = ValueOr<SoundTrackType>(mode, SoundTrackType::OneShot); auto playMode = ValueOr<SoundTrackType>(mode, SoundTrackType::OneShot);
PlaySoundTrack(trackName, playMode); PlaySoundTrack(trackName, playMode);
} }
/// Set and play an ambient track /// Set and play an ambient track.
// @function SetAmbientTrack // @function SetAmbientTrack
// @tparam string name of track (without file extension) to play // @tparam string name Name of track (without file extension) to play.
// @tparam bool fromStart specifies whether ambient track should play from the start, or crossfade at a random position // @tparam bool fromStart Specifies whether ambient track should play from the start, or crossfade at a random position.
static void SetAmbientTrack(const std::string& trackName, TypeOrNil<bool> fromTheBeginning) static void SetAmbientTrack(const std::string& trackName, TypeOrNil<bool> fromTheBeginning)
{ {
auto pos = ValueOr<bool>(fromTheBeginning, false) ? std::optional<QWORD>(0) : std::optional<QWORD>(); auto pos = ValueOr<bool>(fromTheBeginning, false) ? std::optional<QWORD>(0) : std::optional<QWORD>();
PlaySoundTrack(trackName, SoundTrackType::BGM, pos, pos.has_value() ? SOUND_XFADETIME_ONESHOT : SOUND_XFADETIME_BGM); PlaySoundTrack(trackName, SoundTrackType::BGM, pos, pos.has_value() ? SOUND_XFADETIME_ONESHOT : SOUND_XFADETIME_BGM);
} }
///Stop any audio tracks currently playing /// Stop any audio tracks currently playing.
//@function StopAudioTracks // @function StopAudioTracks
static void StopAudioTracks() static void StopAudioTracks()
{ {
StopSoundTracks(); StopSoundTracks();
} }
///Stop audio track that is currently playing /// Stop audio track that is currently playing.
//@function StopAudioTrack // @function StopAudioTrack
//@tparam Sound.SoundTrackType type of the audio track // @tparam Sound.SoundTrackType type Type of the audio track.
static void StopAudioTrack(TypeOrNil<SoundTrackType> mode) static void StopAudioTrack(TypeOrNil<SoundTrackType> mode)
{ {
auto playMode = ValueOr<SoundTrackType>(mode, SoundTrackType::OneShot); auto playMode = ValueOr<SoundTrackType>(mode, SoundTrackType::OneShot);
StopSoundTrack(playMode, SOUND_XFADETIME_ONESHOT); StopSoundTrack(playMode, SOUND_XFADETIME_ONESHOT);
} }
///Get current loudness level for specified track type /// Get current loudness level for specified track type.
//@function GetAudioTrackLoudness // @function GetAudioTrackLoudness
//@tparam Sound.SoundTrackType type of the audio track // @tparam Sound.SoundTrackType type Type of the audio track.
//@treturn float current loudness of a specified audio track // @treturn float Current loudness of a specified audio track.
static float GetAudioTrackLoudness(TypeOrNil<SoundTrackType> mode) static float GetAudioTrackLoudness(TypeOrNil<SoundTrackType> mode)
{ {
auto playMode = ValueOr<SoundTrackType>(mode, SoundTrackType::OneShot); auto playMode = ValueOr<SoundTrackType>(mode, SoundTrackType::OneShot);
return GetSoundTrackLoudness(playMode); return GetSoundTrackLoudness(playMode);
} }
/// Play sound effect /// Play sound effect.
//@function PlaySound // @function PlaySound
//@tparam int sound ID to play. Corresponds to the value in the sound XML file or Tomb Editor's "Sound Infos" window. // @tparam int soundID Sound ID to play. Corresponds to the value in the sound XML file or Tomb Editor's "Sound Infos" window.
////@tparam[opt] Vec3 position The 3D position of the sound, i.e. where the sound "comes from". If not given, the sound will not be positional. // @tparam[opt] Vec3 position The 3D position of the sound, i.e. where the sound "comes from". If not given, the sound will not be positional.
static void PlaySoundEffect(int soundID, sol::optional<Vec3> pos) static void PlaySoundEffect(int soundID, sol::optional<Vec3> pos)
{ {
SoundEffect(soundID, pos.has_value() ? &Pose(pos->ToVector3i()) : nullptr, SoundEnvironment::Always); SoundEffect(soundID, pos.has_value() ? &Pose(pos->ToVector3i()) : nullptr, SoundEnvironment::Always);
} }
/// Stop sound effect /// Stop sound effect.
//@function StopSound // @function StopSound
//@tparam int sound ID to play. Corresponds to the value in the sound XML file or Tomb Editor's "Sound Infos" window. // @tparam int soundID Sound ID to play. Corresponds to the value in the sound XML file or Tomb Editor's "Sound Infos" window.
static void StopSound(int id) static void StopSound(int id)
{ {
StopSoundEffect(id); StopSoundEffect(id);
} }
/// Check if the sound effect is playing /// Check if the sound effect is playing.
//@function IsSoundPlaying // @function IsSoundPlaying
//@tparam int Sound ID to check. Corresponds to the value in the sound XML file or Tomb Editor's "Sound Infos" window. // @tparam int soundID Sound ID to check. Corresponds to the value in the sound XML file or Tomb Editor's "Sound Infos" window.
static bool IsSoundPlaying(int effectID) static bool IsSoundPlaying(int effectID)
{ {
return (Sound_EffectIsPlaying(effectID, nullptr) != SOUND_NO_CHANNEL); return (Sound_EffectIsPlaying(effectID, nullptr) != SOUND_NO_CHANNEL);
} }
/// Check if the audio track is playing /// Check if the audio track is playing.
//@function IsAudioTrackPlaying // @function IsAudioTrackPlaying
//@tparam string Track filename to check. Should be without extension and without full directory path. // @tparam string Track Filename to check. Should be without extension and without full directory path.
static bool IsAudioTrackPlaying(const std::string& trackName) static bool IsAudioTrackPlaying(const std::string& trackName)
{ {
return Sound_TrackIsPlaying(trackName); return Sound_TrackIsPlaying(trackName);
} }
///Get current subtitle string for a voice track currently playing. /// Get current subtitle string for a voice track currently playing.
//Subtitle file must be in .srt format, have same filename as voice track, and be placed in same directory as voice track. // Subtitle file must be in .srt format, have same filename as voice track, and be placed in same directory as voice track.
//Returns nil if no voice track is playing or no subtitle present. // Returns nil if no voice track is playing or no subtitle present.
//@function GetCurrentSubtitle // @function GetCurrentSubtitle
//@treturn string current subtitle string // @treturn string Current subtitle string.
static TypeOrNil<std::string> GetCurrentVoiceTrackSubtitle() static TypeOrNil<std::string> GetCurrentVoiceTrackSubtitle()
{ {
auto& result = GetCurrentSubtitle(); auto& result = GetCurrentSubtitle();

View file

@ -25,6 +25,9 @@ namespace TEN::Scripting
// Meta functions // Meta functions
sol::meta_function::to_string, &Rotation::ToString, sol::meta_function::to_string, &Rotation::ToString,
sol::meta_function::equal_to, &Rotation::operator ==,
sol::meta_function::addition, &Rotation::operator +,
sol::meta_function::subtraction, &Rotation::operator -,
// Utilities // Utilities
ScriptReserved_RotationLerp, &Rotation::Lerp, ScriptReserved_RotationLerp, &Rotation::Lerp,
@ -108,4 +111,41 @@ namespace TEN::Scripting
{ {
return Vector3(x, y, z); return Vector3(x, y, z);
}; };
bool Rotation::operator ==(const Rotation& rot) const
{
return (rot.x == x && rot.y == y && rot.z == z);
}
Rotation Rotation::operator +(const Rotation& rot) const
{
return Rotation(WrapAngle(x + rot.x), WrapAngle(y + rot.y), WrapAngle(z + rot.z));
}
Rotation Rotation::operator -(const Rotation& rot) const
{
return Rotation(WrapAngle(x - rot.x), WrapAngle(y - rot.y), WrapAngle(z - rot.z));
}
Rotation& Rotation::operator +=(const Rotation& rot)
{
x = WrapAngle(x + rot.x);
y = WrapAngle(y + rot.y);
z = WrapAngle(z + rot.z);
return *this;
}
Rotation& Rotation::operator -=(const Rotation& rot)
{
x = WrapAngle(x - rot.x);
y = WrapAngle(y - rot.y);
z = WrapAngle(z - rot.z);
return *this;
}
float Rotation::WrapAngle(float angle) const
{
angle -= std::floor(angle / 360.0f) * 360.0f;
return ((angle < 0.0f) ? (angle + 360.0f) : angle);
}
} }

View file

@ -40,5 +40,16 @@ namespace TEN::Scripting
// Operators // Operators
operator Vector3() const; operator Vector3() const;
bool operator ==(const Rotation& rot) const;
Rotation operator +(const Rotation& rot) const;
Rotation operator -(const Rotation& rot) const;
Rotation& operator +=(const Rotation& rot);
Rotation& operator -=(const Rotation& rot);
private:
// Helpers
float WrapAngle(float angle) const;
}; };
} }

View file

@ -84,15 +84,6 @@ Vec2::Vec2(const Vector2& vector)
y = vector.y; y = vector.y;
}*/ }*/
/// Metafunction. Use tostring(vector).
// @tparam Vec2 This Vec2.
// @treturn string A string showing the X and Y components of the Vec2.
// @function __tostring
std::string Vec2::ToString() const
{
return "{" + std::to_string(x) + ", " + std::to_string(y) + "}";
}
/// Get a copy of this Vec2 normalized to length 1. /// Get a copy of this Vec2 normalized to length 1.
// @function Vec2:Normalize // @function Vec2:Normalize
// @treturn Vec2 Normalized vector. // @treturn Vec2 Normalized vector.
@ -105,7 +96,7 @@ Vec2 Vec2::Normalize() const
} }
/// Get a copy of this Vec2 translated in the input Vec2 direction by the input distance. /// Get a copy of this Vec2 translated in the input Vec2 direction by the input distance.
// @function Translate // @function Vec2:Translate
// @tparam Vec2 dir Direction vector. Normalized automatically to length 1. // @tparam Vec2 dir Direction vector. Normalized automatically to length 1.
// @tparam float dist Distance. // @tparam float dist Distance.
// @treturn Vec2 Translated vector. // @treturn Vec2 Translated vector.
@ -115,7 +106,7 @@ Vec2 Vec2::Translate(const Vec2& dir, float dist)
} }
/// Get a copy of this Vec2 translated in the direction of the input rotation in degrees by the input distance. /// Get a copy of this Vec2 translated in the direction of the input rotation in degrees by the input distance.
// @function Translate // @function Vec2:Translate
// @tparam Rotation rot Rotation in degrees defining the direction. // @tparam Rotation rot Rotation in degrees defining the direction.
// @tparam float dist Distance. // @tparam float dist Distance.
// @treturn Vec2 Translated vector. // @treturn Vec2 Translated vector.
@ -125,7 +116,7 @@ Vec2 Vec2::Translate(float rot, float dist)
} }
/// Get a copy of this Vec2 translated by an offset, where the input relative offset Vec2 is rotated according to the input rotation in degrees. /// Get a copy of this Vec2 translated by an offset, where the input relative offset Vec2 is rotated according to the input rotation in degrees.
// @function Translate // @function Vec2:Translate
// @tparam float rot Rotation in degrees rotating the input relative offset vector. // @tparam float rot Rotation in degrees rotating the input relative offset vector.
// @tparam Vec2 relOffset Relative offset vector before rotation. // @tparam Vec2 relOffset Relative offset vector before rotation.
// @treturn Vec2 Translated vector. // @treturn Vec2 Translated vector.
@ -203,6 +194,15 @@ float Vec2::Length() const
return ToVector2().Length(); return ToVector2().Length();
} }
/// Metafunction. Use tostring(vector).
// @tparam Vec2 This Vec2.
// @treturn string A string showing the X and Y components of the Vec2.
// @function __tostring
std::string Vec2::ToString() const
{
return "{" + std::to_string(x) + ", " + std::to_string(y) + "}";
}
Vec2 Vec2::Add(const Vec2& vector0, const Vec2& vector1) Vec2 Vec2::Add(const Vec2& vector0, const Vec2& vector1)
{ {
return Vec2(vector0.x + vector1.x, vector0.y + vector1.y); return Vec2(vector0.x + vector1.x, vector0.y + vector1.y);