123456789101112131415161718192021222324252627 |
- using System;
- namespace XGame.Framework.Nodes
- {
- public class NodeKey
- {
- public string Key { get; private set; }
- /// <summary>
- /// 分组id
- /// </summary>
- public uint GroupId { get; private set; }
- /// <summary>
- /// Node的类型
- /// </summary>
- public Type NodeType { get; private set; }
- public NodeKey(string key, uint groupId, Type nodeType)
- {
- Key = key;
- GroupId = groupId;
- NodeType = nodeType;
- }
- public static implicit operator string(NodeKey nodeKey) => nodeKey.Key;
- public override string ToString() => Key;
- }
- }
|