コード例 #1
0
    public static int Login(IntPtr L)
    {
        int       count = LuaDLL.lua_gettop(L);
        const int nRet  = 0;

        if (count == 0)
        {
            PlatformControl.Login();
        }
        else if ((count == 1 && LuaScriptMgr.CheckTypes(L, 1, typeof(int))))
        {
            int type = (int)LuaScriptMgr.GetNumber(L, 1);
            PlatformControl.Login(type);
        }
        else
        {
            LogParamError("Login", count);
        }
        return(GameUtilWrap.CheckReturnNum(L, count, nRet));
    }