summaryrefslogtreecommitdiff
path: root/src/T2DLL/UT2Utils.h
blob: 32e1cfa99a2d1b1fe0d07cdebedc949c2a8d1c06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once
#include "common.h"

class AFX_CLASS_EXPORT UT2Utils {
public:
	static unsigned int Float2Int(float inValue);
	static void GetRoomNumberString(int inNumber, CString& outStr);
	static void GetHourMinute(int inValue, int& outHour, int& outMinute);
	static void GetMonetaryString(int inValue, CString& outStr);

	static int Randomize(int inRange) {
		return (inRange == 0) ? 0 : (rand() % inRange);
	}
};