/*
文件名:enum.nut
路径:Dps_A/enum.nut
创建日期:2024-04-29	15:38
文件用途:枚举表
*/

ProjectInitFuncMap <- {};

PacketDebugModel <- false;
//函数返回值类型枚举
enum RETTYPE {
    INT,
    FLOAT,
    BOOL,
    STRING,
    POINTER
}

function printT(T) 
{
    Sq_OutPutTable(Json.Encode(T));
}

function LoadConfig(Path) 
{
    dofile("/dp_s/" + Path);
}

if (getroottable().rawin("DP_S_VERSION") && DP_S_VERSION >= 25.329) {
function print(Object) {
    switch (typeof Object) {
        case "table":
        case "array": {
            local str = Json.Encode(Object);
            Sq_OutPutTable(str);
            break;
        }
        case "string":
        case "integer": {
            output(Object);
            break;
        }
        default:
            output(Object);
            break;
    }
}
}