GameMainNode.cs 821 B

123456789101112131415161718192021222324252627282930313233
  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 TableComponent());
  22. group.Add(new MapComponent());
  23. group.Add(new UIComponent());
  24. }
  25. protected override void AddData(IDataGroup dataGroup)
  26. {
  27. }
  28. }
  29. }