diff options
author | Warpten <vertozor@gmail.com> | 2012-10-12 22:13:28 +0200 |
---|---|---|
committer | Warpten <vertozor@gmail.com> | 2012-10-12 22:13:28 +0200 |
commit | c8c4291c6f57616489f7d511595c07a63bd230bc (patch) | |
tree | a534146dfd43413fa2931de7532d70bc7421183a /src/server/shared/Utilities/Util.h | |
parent | b06e9cfd41e11b8efed8c1e8abb7899b91897b8d (diff) |
Core/Commands: Allow .modify money to take another parameter structure:
Example uses:
* .modify money 325g 25s 12c is the same as .modify money 3252512
* .modify money -12g is the same as .modify money -120000
* .modify money -12g 45s is the same as .modify money -115500
* .modify money 25c 18g is the same as .modify money 18g 25c
Diffstat (limited to 'src/server/shared/Utilities/Util.h')
-rwxr-xr-x | src/server/shared/Utilities/Util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/shared/Utilities/Util.h b/src/server/shared/Utilities/Util.h index f84e5155bb1..f46fc991cc7 100755 --- a/src/server/shared/Utilities/Util.h +++ b/src/server/shared/Utilities/Util.h @@ -66,6 +66,8 @@ private: void stripLineInvisibleChars(std::string &src); +int32 MoneyStringToMoney(const std::string& moneyString); + std::string secsToTimeString(uint64 timeInSecs, bool shortText = false, bool hoursOnly = false); uint32 TimeStringToSecs(const std::string& timestring); std::string TimeToTimestampStr(time_t t); |