SummonNode.cs 717 B

12345678910111213141516171819202122232425262728293031
  1. using FL.Nodes.Summon;
  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 _Summon;
  9. public static NodeKey Summon => _Summon ??= new NodeKey("Summon", (uint)NodeGroupDefine.Launch, typeof(SummonNode));
  10. }
  11. public class SummonNode : 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 UIComponent());
  22. }
  23. protected override void AddData(IDataGroup dataGroup)
  24. {
  25. }
  26. }
  27. }