| 1234567891011121314151617181920212223242526272829303132333435 | 
							- namespace ET
 
- {
 
-     public class ServerInfosComponentDestroySystem : DestroySystem<ServerInfosComponent>
 
-     {
 
-         public override void Destroy(ServerInfosComponent self)
 
-         {
 
-             foreach (var serverInfo in self.ServerInfoList.Values)
 
-             {
 
-                 serverInfo?.Dispose();
 
-             }
 
-             self.ServerInfoList.Clear();
 
-         }
 
-     }
 
-     public static class ServerInfosComponentSystem
 
-     {
 
-         public static void Add(this ServerInfosComponent self, ServerInfo serverInfo)
 
-         {
 
-             self.ServerInfoList.Add(serverInfo.Id, serverInfo);
 
-         }
 
-         public static void SetRecentlyServerInfo(this ServerInfosComponent self, long recentId)
 
-         {
 
-             self.recentlyServerInfo = self.ServerInfoList[recentId];
 
-             self.CurrentServerId = (int)recentId;
 
-         }
 
-         public static ServerInfo GetCurrentServerInfo(this ServerInfosComponent self)
 
-         {
 
-             return self.ServerInfoList[self.CurrentServerId];
 
-         }
 
-     }
 
- }
 
 
  |