I’m not sure how to use the steamworks.user_get_auth_session_ticket()
function. Here is the source:
static int ISteamUser_GetAuthSessionTicket(lua_State* L) {
int top = lua_gettop(L);
uint32 pcbTicket = check_uint32(L, 3); /*out_param*/
int cbMaxTicket = check_int(L, 2); /*normal*/
dmScript::LuaHBuffer * pTicket_buffer = check_buffer(L, 1); /*buffer_param*/
void * pTicket = 0x0;
uint32_t pTicket_buffersize = 0;
dmBuffer::Result pTicket_buffer_result = dmBuffer::GetBytes(pTicket_buffer->m_Buffer, (void**)&pTicket, &pTicket_buffersize);
HAuthTicket r = user->GetAuthSessionTicket(pTicket, cbMaxTicket, &pcbTicket);
push_HAuthTicket(L, r);
push_uint32(L, pcbTicket); /*out_param*/
assert(top + 1 + 1 == lua_gettop(L));
return 1 + 1;
}
Could someone who understands the C++ <-> Lua API explain what kind of arguments are required? I am attempting to get the current auth session ticket so I can link the player’s Steam account with their PlayFab account.