summaryrefslogtreecommitdiff
path: root/library/include
diff options
context:
space:
mode:
authorQuietust2012-08-22 16:54:00 -0500
committerQuietust2012-08-22 16:54:00 -0500
commit1e28ceff6dd10d78d6261bc9b018f4743e692b10 (patch)
tree30a1a7cc000acd5f9df399fe2decb61b969091d6 /library/include
parentcf4b8a01966cc680b6f7c74db5f6bad30adc3e64 (diff)
downloaddfhack-1e28ceff6dd10d78d6261bc9b018f4743e692b10.tar.gz
dfhack-1e28ceff6dd10d78d6261bc9b018f4743e692b10.tar.bz2
dfhack-1e28ceff6dd10d78d6261bc9b018f4743e692b10.tar.xz
Add getProfessionColor and getCasteProfessionColor to Units module
Diffstat (limited to 'library/include')
-rw-r--r--library/include/modules/Units.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/include/modules/Units.h b/library/include/modules/Units.h
index 7bf4f101..9003dc3a 100644
--- a/library/include/modules/Units.h
+++ b/library/include/modules/Units.h
@@ -226,6 +226,9 @@ DFHACK_EXPORT bool getNoblePositions(std::vector<NoblePosition> *pvec, df::unit
DFHACK_EXPORT std::string getProfessionName(df::unit *unit, bool ignore_noble = false, bool plural = false);
DFHACK_EXPORT std::string getCasteProfessionName(int race, int caste, df::profession pid, bool plural = false);
+
+DFHACK_EXPORT int8_t getProfessionColor(df::unit *unit, bool ignore_noble = false);
+DFHACK_EXPORT int8_t getCasteProfessionColor(int race, int caste, df::profession pid);
}
}
#endif