mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Rename SetNumberOfSecrets to SetTotalSecretCount
This commit is contained in:
parent
1b56e731b5
commit
64d61afd3e
5 changed files with 7 additions and 7 deletions
|
@ -50,7 +50,7 @@ Lua API changes:
|
|||
* Add FlipMap and PlayFlyBy script commands and node functions.
|
||||
* Add GetMoveablesBySlot and GetStaticsBySlot script commands to select groups of items.
|
||||
* Add FlyCheat option to gameflow script for disabling dozy mode.
|
||||
* Add SetNumberOfSecrets option to gameflow script to set overall amount of secrets.
|
||||
* Add SetTotalSecretCount option to gameflow script to set overall amount of secrets.
|
||||
* Raised the maximum value on Moveable.SetHP to 32767 (its internal numeric maximum).
|
||||
|
||||
Version 1.0.2
|
||||
|
|
|
@ -14,7 +14,7 @@ Flow.SetTitleScreenImagePath("Screens\\main.jpg")
|
|||
-- Set overall amount of secrets in game.
|
||||
-- If set to 0, secrets won't be displayed in statistics.
|
||||
|
||||
Flow.SetNumberOfSecrets(5)
|
||||
Flow.SetTotalSecretCount(5)
|
||||
|
||||
-- Disable/enable flycheat globally
|
||||
|
||||
|
|
|
@ -109,13 +109,13 @@ static constexpr char ScriptReserved_GetLevel[] = "GetLevel";
|
|||
static constexpr char ScriptReserved_GetCurrentLevel[] = "GetCurrentLevel";
|
||||
static constexpr char ScriptReserved_SetIntroImagePath[] = "SetIntroImagePath";
|
||||
static constexpr char ScriptReserved_SetTitleScreenImagePath[] = "SetTitleScreenImagePath";
|
||||
static constexpr char ScriptReserved_SetNumberOfSecrets[] = "SetNumberOfSecrets";
|
||||
static constexpr char ScriptReserved_SetFarView[] = "SetFarView";
|
||||
static constexpr char ScriptReserved_SetSettings[] = "SetSettings";
|
||||
static constexpr char ScriptReserved_SetAnimations[] = "SetAnimations";
|
||||
static constexpr char ScriptReserved_EndLevel[] = "EndLevel";
|
||||
static constexpr char ScriptReserved_GetSecretCount[] = "GetSecretCount";
|
||||
static constexpr char ScriptReserved_SetSecretCount[] = "SetSecretCount";
|
||||
static constexpr char ScriptReserved_SetTotalSecretCount[] = "SetTotalSecretCount";
|
||||
static constexpr char ScriptReserved_AddSecret[] = "AddSecret";
|
||||
static constexpr char ScriptReserved_EnableFlyCheat[] = "EnableFlyCheat";
|
||||
|
||||
|
|
|
@ -108,10 +108,10 @@ __(not yet implemented)__
|
|||
|
||||
/*** Total number of secrets in game.
|
||||
Must be an integer value (0 means no secrets).
|
||||
@function SetNumberOfSecrets
|
||||
@function SetTotalSecretCount
|
||||
@tparam int total number of secrets
|
||||
*/
|
||||
table_flow.set_function(ScriptReserved_SetNumberOfSecrets, &FlowHandler::SetNumberOfSecrets, this);
|
||||
table_flow.set_function(ScriptReserved_SetTotalSecretCount, &FlowHandler::SetTotalSecretCount, this);
|
||||
|
||||
/*** Set FlyCheatEnabled
|
||||
Must be true or false
|
||||
|
@ -220,7 +220,7 @@ void FlowHandler::SetTitleScreenImagePath(std::string const& path)
|
|||
TitleScreenImagePath = path;
|
||||
}
|
||||
|
||||
void FlowHandler::SetNumberOfSecrets(int secretsNumber)
|
||||
void FlowHandler::SetTotalSecretCount(int secretsNumber)
|
||||
{
|
||||
NumberOfSecrets = secretsNumber;
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ public:
|
|||
void AddSecret(int levelSecretIndex);
|
||||
void SetIntroImagePath(std::string const& path);
|
||||
void SetTitleScreenImagePath(std::string const& path);
|
||||
void SetNumberOfSecrets(int secretsNumber);
|
||||
void SetTotalSecretCount(int secretsNumber);
|
||||
bool IsFlyCheatEnabled() const;
|
||||
void EnableFlyCheat(bool flyCheat);
|
||||
bool CanPlayAnyLevel() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue