NodeTemplate.txt 777 B

12345678910111213141516171819202122232425262728293031
  1. using <#ProductName>.Nodes.<#KeyName>;
  2. using XGame.Framework.Data;
  3. using XGame.Framework.Nodes;
  4. namespace <#ProductName>.Nodes
  5. {
  6. public static partial class NodeKeys
  7. {
  8. private static NodeKey _<#KeyName>;
  9. public static NodeKey <#KeyName> => _<#KeyName> ??= new NodeKey("<#KeyName>", (uint)<#NodeGroupName>, typeof(<#KeyName>Node));
  10. }
  11. public class <#KeyName>Node : 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 <#ComponentName>Component());
  22. }
  23. protected override void AddData(IDataGroup dataGroup)
  24. {
  25. }
  26. }
  27. }