Ejemplo n.º 1
0
 private void RemovePlayer(BE_Player pPayload)
 {
     if (Players.Exists(p => p.Id == pPayload.Id))
     {
         Players.Remove(Players.Find(p => p.Id == pPayload.Id));
     }
 }
Ejemplo n.º 2
0
 private void AddPlayer(BE_Player pPayload)
 {
     if (!Players.Exists(p => p.Id == pPayload.Id))
     {
         Players.Add(pPayload);
     }
 }
Ejemplo n.º 3
0
 private void UpdatePlayer(BE_Player pPayload)
 {
     if (Players.Exists(p => p.Id == pPayload.Id))
     {
         var playerObject = Players.Find(p => p.Id == pPayload.Id);
         if (playerObject.Guid != null | playerObject.Guid != pPayload.Guid)
         {
             playerObject.Guid = pPayload.Guid;
         }
     }
 }