private void OnNumberOfCurrentPlayers(NumberOfCurrentPlayers_t pCallback, bool bIOFailure) { if (pCallback.m_bSuccess != 1 || bIOFailure) { Debug.Log("There was an error retrieving the NumberOfCurrentPlayers."); } else { Debug.Log("The number of players playing your game: " + pCallback.m_cPlayers); } }
private void OnNumberOfCurrentPlayers(NumberOfCurrentPlayers_t pCallback, bool bIOFailure) { Debug.Log("[" + NumberOfCurrentPlayers_t.k_iCallback + " - NumberOfCurrentPlayers] - " + pCallback.m_bSuccess + " -- " + pCallback.m_cPlayers); }
static void OnNumberOfCurrentPlayers(NumberOfCurrentPlayers_t pCallback, bool bIOFailure) { Console.WriteLine("[" + NumberOfCurrentPlayers_t.k_iCallback + " - NumberOfCurrentPlayers] - " + pCallback.m_bSuccess + " -- " + pCallback.m_cPlayers); }
internal async Task <NumberOfCurrentPlayers_t?> GetNumberOfCurrentPlayers() { return(await NumberOfCurrentPlayers_t.GetResultAsync(_GetNumberOfCurrentPlayers( Self ))); }
internal async Task <NumberOfCurrentPlayers_t?> GetNumberOfCurrentPlayers() { NumberOfCurrentPlayers_t?resultAsync = await NumberOfCurrentPlayers_t.GetResultAsync(this._GetNumberOfCurrentPlayers(this.Self)); return(resultAsync); }
internal async Task <NumberOfCurrentPlayers_t?> GetNumberOfCurrentPlayers() { var returnValue = _GetNumberOfCurrentPlayers(Self); return(await NumberOfCurrentPlayers_t.GetResultAsync(returnValue)); }