2012-06-14 09:06:06 -04:00
|
|
|
#pragma once
|
|
|
|
|
2013-12-08 06:17:54 -05:00
|
|
|
#include "../MCLogger.h"
|
2012-06-14 09:06:06 -04:00
|
|
|
#include <time.h>
|
|
|
|
// tolua_begin
|
|
|
|
|
2014-05-01 17:38:35 -04:00
|
|
|
inline unsigned int GetTime()
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
|
|
|
return (unsigned int)time(0);
|
|
|
|
}
|
|
|
|
|
2014-05-01 17:38:35 -04:00
|
|
|
inline std::string GetChar( std::string & a_Str, unsigned int a_Idx )
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
|
|
|
return std::string(1, a_Str[ a_Idx ]);
|
|
|
|
}
|
|
|
|
|
|
|
|
// tolua_end
|