#include <cstdint>
#include <string>
Go to the source code of this file.
|
std::string | deprecated_message (const std::string &elem_name, DEP_LEVEL level, const class version_info &version, const std::string &detail="") |
| Prints a message to the deprecation log domain informing players that a given feature has been deprecated. More...
|
|
◆ DEP_LEVEL
◆ deprecated_message()
std::string deprecated_message |
( |
const std::string & |
elem_name, |
|
|
DEP_LEVEL |
level, |
|
|
const class version_info & |
version, |
|
|
const std::string & |
detail = "" |
|
) |
| |
Prints a message to the deprecation log domain informing players that a given feature has been deprecated.
- Parameters
-
elem_name | The name of the feature to be deprecated. |
level | The deprecation level. This indicates how long the feature will remain supported before removal. |
version | If level is PREEMPTIVE or FOR_REMOVAL, this should be the first version in which the feature could be removed. If it's INDEFINITE or REMOVED, this is unused. |
detail | Optional extra message elaborating on the deprecation. This can be used to specify which feature to use instead, for example. |
- Returns
- The final translated deprecation message in case you want to output it elsewhere as well.
- Todo:
- version should probably be made optional to handle INDEFINITE and REMOVED deprecation, but I don't think we can do that without including version_info.hpp in this header.