Beispiel #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));
     }
 }
Beispiel #2
0
 private void AddPlayer(BE_Player pPayload)
 {
     if (!Players.Exists(p => p.Id == pPayload.Id))
     {
         Players.Add(pPayload);
     }
 }
Beispiel #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;
         }
     }
 }