mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-17 19:56:38 -04:00
Feature/taskforce (#74)
This commit is contained in:
parent
b286e20dfd
commit
dcae37feca
7 changed files with 200 additions and 97 deletions
|
@ -663,6 +663,12 @@ void PosToXY(const char* pos, int* X, int* Y)
|
|||
|
||||
}
|
||||
|
||||
bool IsNumeric(const CString& str) {
|
||||
return std::all_of(str.operator LPCSTR(), str.operator LPCSTR() + str.GetLength(), [](char c) {
|
||||
return std::isdigit(c);
|
||||
});
|
||||
}
|
||||
|
||||
bool HSVToRGB(const float h, const float s, const float v, float& r, float& g, float& b)
|
||||
{
|
||||
if (h < 0.0 || h >= 360.0 || s < 0.0 || s > 1.0 || v < 0.0 || v > 1.0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue