From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/AI/AIRunTimeRootNode.cs | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeRootNode.cs (limited to 'Client/Assets/Scripts/XMainClient/AI/AIRunTimeRootNode.cs') diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRootNode.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRootNode.cs new file mode 100644 index 00000000..efedd412 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRootNode.cs @@ -0,0 +1,37 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeRootNode : AIRunTimeNodeBase + { + public SharedData Data + { + get + { + return this._shared_data; + } + } + + private AIRunTimeNodeBase _child; + + private SharedData _shared_data; + + public AIRunTimeRootNode(XmlElement node) : base(node) + { + this._child = null; + this._type = NodeType.NODE_TYPE_ROOT; + this._shared_data = new SharedData(); + } + + public override void AddChild(AIRunTimeNodeBase child) + { + this._child = child; + } + + public override bool Update(XEntity entity) + { + return this._child.Update(entity); + } + } +} -- cgit v1.1-26-g67d0