mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-06 19:01:06 +03:00
Make some getters const.
This commit is contained in:
parent
672f90e238
commit
9b4cd106d1
2 changed files with 4 additions and 4 deletions
|
@ -197,7 +197,7 @@ void GameFlow::LoadGameFlowScript()
|
|||
SetErrorMode(GetSettings()->ErrorMode);
|
||||
}
|
||||
|
||||
char const * GameFlow::GetString(const char* id)
|
||||
char const * GameFlow::GetString(const char* id) const
|
||||
{
|
||||
if (!ScriptAssert(m_translationsMap.find(id) != m_translationsMap.end(), std::string{ "Couldn't find string " } + id))
|
||||
{
|
||||
|
@ -217,7 +217,7 @@ GameScriptLevel* GameFlow::GetLevel(int id)
|
|||
return Levels[id];
|
||||
}
|
||||
|
||||
int GameFlow::GetNumLevels()
|
||||
int GameFlow::GetNumLevels() const
|
||||
{
|
||||
return Levels.size();
|
||||
}
|
||||
|
|
|
@ -45,13 +45,13 @@ public:
|
|||
void AddLevel(GameScriptLevel const& level);
|
||||
void SetAudioTracks(sol::as_table_t<std::vector<GameScriptAudioTrack>>&& src);
|
||||
void LoadGameFlowScript();
|
||||
char const * GetString(const char* id);
|
||||
char const * GetString(const char* id) const;
|
||||
void SetStrings(sol::nested<std::unordered_map<std::string, std::vector<std::string>>> && src);
|
||||
void SetLanguageNames(sol::as_table_t<std::vector<std::string>> && src);
|
||||
void SetSettings(GameScriptSettings const & src);
|
||||
GameScriptSettings* GetSettings();
|
||||
GameScriptLevel* GetLevel(int id);
|
||||
int GetNumLevels();
|
||||
int GetNumLevels() const;
|
||||
bool DoGameflow();
|
||||
void SetIntroImagePath(std::string const& path);
|
||||
void SetTitleScreenImagePath(std::string const& path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue