Пример #1
0
    public static int GetPlatformType(IntPtr L)
    {
        int       count = LuaDLL.lua_gettop(L);
        const int nRet  = 1;

        if (count == 0)
        {
            int type = (int)PlatformControl.GetPlatformType();
            LuaScriptMgr.Push(L, type);
        }
        else
        {
            LogParamError("GetPlatformType", count);
            LuaScriptMgr.Push(L, -1);
        }
        return(GameUtilWrap.CheckReturnNum(L, count, nRet));
    }