NekoKun.RPGMaker.EventCommandGroup.EventCommandGroup C# (CSharp) Method

EventCommandGroup() public method

public EventCommandGroup ( System node, EventCommandProvider provider ) : System
node System
provider EventCommandProvider
return System
        public EventCommandGroup(System.Xml.XmlNode node, EventCommandProvider provider)
        {
            Commands = new Dictionary<string, EventCommand>();
            Provider = provider;
            ID = node.Attributes["ID"].Value;
            Name = node.Attributes["Name"].Value;
            ForeColor = (node.Attributes["ForeColor"] != null) ?
                Core.DrawingHelper.ParseColor(node.Attributes["ForeColor"].Value) :
                System.Drawing.SystemColors.WindowText;

            foreach (System.Xml.XmlNode cmd in node.ChildNodes)
            {
                if (cmd.Name != "EventCommand") continue;

                EventCommand item = new EventCommand(cmd, this);

                this.Commands.Add(item.ID, item);
            }
        }
EventCommandGroup