2015-01-29 19:40:45 +00:00
|
|
|
#ifndef _CONSOLFUNCTIONS_H_
|
|
|
|
|
#define _CONSOLFUNCTIONS_H_
|
|
|
|
|
|
|
|
|
|
#ifndef _STRINGFUNCTIONS_H_
|
|
|
|
|
#include "core/strings/stringFunctions.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
bool isInt(const char* str);
|
|
|
|
|
|
|
|
|
|
bool isFloat(const char* str);
|
|
|
|
|
|
|
|
|
|
bool isValidIP(const char* ip);
|
|
|
|
|
|
|
|
|
|
bool isValidPort(U16 port);
|
|
|
|
|
|
2023-01-27 07:13:15 +00:00
|
|
|
void gotoWebPage(const char* address);
|
|
|
|
|
|
|
|
|
|
bool getDocsURL(void* obj, const char* array, const char* data);
|
|
|
|
|
const char* getDocsLink(const char* filename, U32 lineNumber);
|
|
|
|
|
|
2024-03-10 19:29:17 +00:00
|
|
|
#ifdef TORQUE_TOOLS
|
2023-01-27 07:13:15 +00:00
|
|
|
#define docsURL addGroup("Ungrouped");\
|
|
|
|
|
addProtectedField("docsURL", TypeBool, Offset(mDocsClick, ConsoleObject), &getDocsURL, &defaultProtectedGetFn, getDocsLink(__FILE__,__LINE__), AbstractClassRep::FieldFlags::FIELD_ComponentInspectors);\
|
|
|
|
|
endGroup("Ungrouped")
|
2024-03-10 19:29:17 +00:00
|
|
|
#else
|
|
|
|
|
#define docsURL NULL
|
|
|
|
|
#endif
|
|
|
|
|
|
2023-01-27 07:13:15 +00:00
|
|
|
#endif
|