12345678910111213141516171819202122232425262728293031 |
- using <#ProductName>.Nodes.<#KeyName>;
- using XGame.Framework.Data;
- using XGame.Framework.Nodes;
- namespace <#ProductName>.Nodes
- {
- public static partial class NodeKeys
- {
- private static NodeKey _<#KeyName>;
- public static NodeKey <#KeyName> => _<#KeyName> ??= new NodeKey("<#KeyName>", (uint)<#NodeGroupName>, typeof(<#KeyName>Node));
- }
- public class <#KeyName>Node : Node
- {
- protected override void OnDispose()
- {
- }
- protected override void OnInited()
- {
- }
- protected override void AddComponent(INodeComponentGroup group)
- {
- group.Add(new <#ComponentName>Component());
- }
- protected override void AddData(IDataGroup dataGroup)
- {
- }
- }
- }
|