NetServerComponent.cs 578 B

1234567891011121314151617181920212223
  1. using System.Net;
  2. namespace ET.Server
  3. {
  4. public class NetServerComponentOnRead
  5. {
  6. public Session Session;
  7. public object Message;
  8. public static NetServerComponentOnRead Static = new();
  9. public static NetServerComponentOnRead Clone(Session s, object o)
  10. {
  11. Static.Session = s;
  12. Static.Message = o;
  13. return Static;
  14. }
  15. }
  16. [ComponentOf(typeof(Scene))]
  17. public class NetServerComponent: Entity, IAwake<IPEndPoint, NetworkProtocol>, IDestroy
  18. {
  19. public int ServiceId;
  20. }
  21. }