NetClientComponent.cs 602 B

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