public int Add(int connId, NetworkConnection conn)
{
if (connId < 0)
{
if (LogFilter.logWarn)
{
Debug.LogWarning("ConnectionArray Add bad id " + connId);
}
return -1;
}
if ((connId < this.m_Connections.Count) && (this.m_Connections[connId] != null))
{
if (LogFilter.logWarn)
{
Debug.LogWarning("ConnectionArray Add dupe at " + connId);
}
return -1;
}
while (connId > (this.m_Connections.Count - 1))
{
this.m_Connections.Add(null);
}
this.m_Connections[connId] = conn;
return connId;
}