using System.Net;

namespace ET.Server
{
    public class NetServerComponentOnRead
    {
        public Session Session;
        public object Message;
        public static NetServerComponentOnRead Static = new();
        public static NetServerComponentOnRead Clone(Session s, object o)
        {
            Static.Session = s;
            Static.Message = o;
            return Static;
        }
    }
    
    [ComponentOf(typeof(Scene))]
    public class NetServerComponent: Entity, IAwake<IPEndPoint>, IDestroy
    {
        public int ServiceId;
    }
}