mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
Optimize parameter passing to avoid unnecessary copying
This commit is contained in:
parent
46ca1bb04a
commit
f25a425cb9
123 changed files with 578 additions and 522 deletions
|
|
@ -16,16 +16,16 @@ public:
|
|||
/// @brief Load world, convert if required and set to LevelScreen.
|
||||
/// @param name world name
|
||||
/// @param confirmConvert automatically confirm convert if requested
|
||||
void openWorld(std::string name, bool confirmConvert);
|
||||
void openWorld(const std::string& name, bool confirmConvert);
|
||||
|
||||
/// @brief Show world removal confirmation dialog
|
||||
/// @param name world name
|
||||
void deleteWorld(std::string name);
|
||||
void deleteWorld(const std::string& name);
|
||||
|
||||
void reconfigPacks(
|
||||
LevelController* controller,
|
||||
std::vector<std::string> packsToAdd,
|
||||
std::vector<std::string> packsToRemove
|
||||
const std::vector<std::string>& packsToAdd,
|
||||
const std::vector<std::string>& packsToRemove
|
||||
);
|
||||
|
||||
void createWorld(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue