Beispiel #1
0
 static int OnSwitchLogin(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         SDKCallback obj = (SDKCallback)ToLua.CheckObject(L, 1, typeof(SDKCallback));
         obj.OnSwitchLogin();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #2
0
    private static int OnSwitchLogin(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 1);
            SDKCallback sDKCallback = (SDKCallback)ToLua.CheckObject(L, 1, typeof(SDKCallback));
            sDKCallback.OnSwitchLogin();
            result = 0;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }