Example #1
0
    public static int LoginBySessionToken(IntPtr l)
    {
        int result;

        try
        {
            NetWorkClient netWorkClient = (NetWorkClient)LuaObject.checkSelf(l);
            string        sessionToken;
            LuaObject.checkType(l, 2, out sessionToken);
            string clientVersion;
            LuaObject.checkType(l, 3, out clientVersion);
            string localization;
            LuaObject.checkType(l, 4, out localization);
            int loginChannelId;
            LuaObject.checkType(l, 5, out loginChannelId);
            int bornChannelId;
            LuaObject.checkType(l, 6, out bornChannelId);
            bool b = netWorkClient.LoginBySessionToken(sessionToken, clientVersion, localization, loginChannelId, bornChannelId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }