Beispiel #1
0
 void OnPlayerDisconnection(int id)
 {
     if (m_EventData == null)
     {
         return;
     }
     m_EventData.RemoveSession(id);
     m_PlayerSessionIndex = 0;
 }
Beispiel #2
0
        public void EventDataPlayerSessionCollection_RemoveSession_SimpleCase()
        {
            EventDataPlayerSessionCollection edpsc = new EventDataPlayerSessionCollection((DiagnosticEvent x) => true);

            edpsc.AddSession("Test session", 0);
            edpsc.RemoveSession(0);

            Assert.AreEqual(0, edpsc.GetSessionCount(), "Session was not properly removed.");
        }