discord / gamesdk-and-dispatch

Public issue tracker for the Discord Game SDK and Dispatch
22 stars 7 forks source link

reason parameter in IDiscordLobbyEvents.on_lobby_delete has no associated enum or information #13

Open ldesgoui opened 4 years ago

ldesgoui commented 4 years ago

Hello,

on_lobby_delete is currently defined as such: { void (*on_lobby_delete)(void* event_data, int64_t lobby_id, uint32_t reason); }

The documentations advertise a String parameter, looking through the C++ and C# wrappers, I have not found logic to convert from the integer to a string https://discordapp.com/developers/docs/game-sdk/lobbies#onlobbydelete

Thanks

Jump-Suit commented 4 years ago

Convertin in C# from int to string could be something like... Using System;

int X = Convert.ToString(X);

OnLobbyDelete is only a Callback anyway, so listening is about all there is for it, reasons themselves are undocumented afaik all the possible Reasons there can be.