NetworkNode.cs 729 B

12345678910111213141516171819202122232425262728293031
  1. using FL.Nodes.Network;
  2. using XGame.Framework.Data;
  3. using XGame.Framework.Nodes;
  4. namespace FL.Nodes
  5. {
  6. public static partial class NodeKeys
  7. {
  8. private static NodeKey _Network;
  9. public static NodeKey Network => _Network ??= new NodeKey("Network", (uint)NodeGroupDefine.Launch, typeof(NetworkNode));
  10. }
  11. public class NetworkNode : Node
  12. {
  13. protected override void OnDispose()
  14. {
  15. }
  16. protected override void OnInited()
  17. {
  18. }
  19. protected override void AddComponent(INodeComponentGroup group)
  20. {
  21. group.Add(new SessionComponent());
  22. }
  23. protected override void AddData(IDataGroup dataGroup)
  24. {
  25. }
  26. }
  27. }