Example #1
0
    public static int SetGoogleAchievementCompletionLevel(IntPtr L)
    {
        int       count = LuaDLL.lua_gettop(L);
        const int nRet  = 0;

        if (count == 2 && LuaScriptMgr.CheckTypes(L, 1, typeof(string), typeof(int)))
        {
            string id    = LuaScriptMgr.GetString(L, 1);
            int    level = (int)LuaScriptMgr.GetNumber(L, 2);
            PlatformControl.SetGoogleAchievementCompletionLevel(id, level);
        }
        else
        {
            LogParamError("SetGoogleAchievementCompletionLevel", count);
        }
        return(GameUtilWrap.CheckReturnNum(L, count, nRet));
    }