summaryrefslogtreecommitdiff
path: root/src/script/api/script_cargo.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api/script_cargo.hpp')
-rw-r--r--src/script/api/script_cargo.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/script/api/script_cargo.hpp b/src/script/api/script_cargo.hpp
index 9ecd4cbfb..1bfd8c553 100644
--- a/src/script/api/script_cargo.hpp
+++ b/src/script/api/script_cargo.hpp
@@ -85,6 +85,14 @@ public:
static bool IsValidTownEffect(TownEffect towneffect_type);
/**
+ * Get the name of the cargo type.
+ * @param cargo_type The cargo type to get the name of.
+ * @pre IsValidCargo(cargo_type).
+ * @return The name of the cargo type.
+ */
+ static char *GetName(CargoID cargo_type);
+
+ /**
* Gets the string representation of the cargo label.
* @param cargo_type The cargo to get the string representation of.
* @pre ScriptCargo::IsValidCargo(cargo_type).