You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
651 B
24 lines
651 B
namespace ET |
|
{ |
|
public class ServerInfosComponentDestroySystem: DestroySystem<ServerInfosComponent> |
|
{ |
|
public override void Destroy(ServerInfosComponent self) |
|
{ |
|
foreach (var serverInfo in self.ServerInfoList) |
|
{ |
|
serverInfo?.Dispose(); |
|
} |
|
|
|
self.ServerInfoList.Clear(); |
|
} |
|
} |
|
|
|
[FriendClass(typeof(ServerInfosComponent))] |
|
public static class ServerInfosComponentSystem |
|
{ |
|
public static void Add(this ServerInfosComponent self, ServerInfo serverInfo) |
|
{ |
|
self.ServerInfoList.Add(serverInfo); |
|
} |
|
} |
|
} |