[RFC] void GetChannelID(uint p_idTable, int p_idPlayer)
{
if (TNManager.isHosting)
{
int l_id;
object l_param = m_correspondanceTableChannel[p_idTable];
Nullable<ChannelDatas> l_datas = GetInfosChannelParID(l_param == null ? -1 : (int)l_param);
if (l_datas == null)
{
l_id = GetIDLibre();
m_correspondanceTableChannel.Add(p_idTable, l_id);
}
else if (l_datas.Value.cd_nombreJoueurs == l_datas.Value.cd_nombreJoueursMax) l_id = -2;
else l_id = l_datas.Value.cd_id;
tno.Send("SetChannelID", TNManager.GetPlayer(p_idPlayer), l_id);
Debug.Log("i'm displayed in console");
}
}