GameMainNode.cs 776 B

1234567891011121314151617181920212223242526272829303132
  1. using FL.Nodes.GameMain;
  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 _GameMain;
  9. public static NodeKey GameMain => _GameMain ??= new NodeKey("GameMain", (uint)NodeGroupDefine.GameMain, typeof(GameMainNode));
  10. }
  11. public class GameMainNode : 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 MapComponent());
  22. group.Add(new UIComponent());
  23. }
  24. protected override void AddData(IDataGroup dataGroup)
  25. {
  26. }
  27. }
  28. }