mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-18 22:32:19 -05:00
fd09a12fff
* add safe string copy method * use string copy for save manager * use string copy in spoiler log hint parsing * remove intermediate string vars * more string copy use in randomizer methods * use string copy in gameplay stats * add load char array method to remove string intermediate var * try string.h import instead
16 lines
522 B
C++
16 lines
522 B
C++
#pragma once
|
|
#include <string>
|
|
#include <stdint.h>
|
|
|
|
namespace SohUtils {
|
|
const std::string& GetSceneName(int32_t scene);
|
|
|
|
const std::string& GetItemName(int32_t item);
|
|
|
|
const std::string& GetQuestItemName(int32_t item);
|
|
|
|
// Copies a string and ensures the destination is null terminated if the source string is larger than size
|
|
// Only up to size-1 characters are copied from the source string
|
|
void CopyStringToCharArray(char* destination, std::string source, size_t size);
|
|
} // namespace SohUtils
|