mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
58 lines
1.1 KiB
C++
58 lines
1.1 KiB
C++
#ifndef SQTYPE_H
|
|
#define SQTYPE_H
|
|
|
|
#define SQ_OK (1)
|
|
#define SQ_ERROR (-1)
|
|
#define SQ_FAILED(res) (res<0)
|
|
#define SQ_SUCCEEDED(res) (res>=0)
|
|
|
|
typedef int SQRESULT;
|
|
typedef struct SQVM* HSQUIRRELVM;
|
|
|
|
enum class SQCONTEXT : int
|
|
{
|
|
SERVER = 0,
|
|
CLIENT,
|
|
UI
|
|
};
|
|
|
|
const static std::string SQVM_TYPE_T[3] =
|
|
{
|
|
"SERVER",
|
|
"CLIENT",
|
|
"UI",
|
|
};
|
|
|
|
const static std::string SQVM_LOG_T[4] =
|
|
{
|
|
"Script(S):",
|
|
"Script(C):",
|
|
"Script(U):",
|
|
"Script(X):"
|
|
};
|
|
|
|
const static std::string SQVM_WARNING_LOG_T[4] =
|
|
{
|
|
"Script(S):Warning:",
|
|
"Script(C):Warning:",
|
|
"Script(U):Warning:",
|
|
"Script(X):Warning:"
|
|
};
|
|
|
|
const static std::string SQVM_ANSI_LOG_T[4] =
|
|
{
|
|
"\033[38;2;151;149;187mScript(S):",
|
|
"\033[38;2;151;149;163mScript(C):",
|
|
"\033[38;2;151;123;136mScript(U):",
|
|
"\033[38;2;151;149;163mScript(X):"
|
|
};
|
|
|
|
const static std::string SQVM_WARNING_ANSI_LOG_T[4] =
|
|
{
|
|
"\033[38;2;151;149;187mScript(S):\033[38;2;255;255;000mWarning:",
|
|
"\033[38;2;151;149;163mScript(C):\033[38;2;255;255;000mWarning:",
|
|
"\033[38;2;151;123;136mScript(U):\033[38;2;255;255;000mWarning:",
|
|
"\033[38;2;151;149;163mScript(X):\033[38;2;255;255;000mWarning:"
|
|
};
|
|
#endif // SQTYPE_H
|