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.

18 lines
581 B

namespace ET
{
[FriendClass(typeof(ServerInfo))]
public static class ServerInfoSystem
{
public static void FromMessage(this ServerInfo self, ServerInfoProto serverInfoProto)
{
self.Id = serverInfoProto.Id;
self.Status = serverInfoProto.Status;
self.ServerName = serverInfoProto.ServerName;
}
public static ServerInfoProto ToMessage(this ServerInfo self)
{
return new ServerInfoProto() { Id = (int)self.Id, Status = self.Status, ServerName = self.ServerName };
}
}
}