Пример #1
0
 public Animator(GBXMLContainer initdata)
     : base(initdata)
 {
     initData = (GBXMLContainer)initdata.Clone();
     name = InitData.Name;
     Reload();
 }
Пример #2
0
        public RenderNode(GBXMLContainer initData, RenderNode parent)
        {
            Initdata = (GBXMLContainer)initData.Clone();
            Parent = parent;
            name = InitData.Name;

            LoadPatterns();

            state = InitData["InitialState"].Text;
            position = GBXMLContainer.ReadPointF(InitData);
            color = new GBColor(InitData["Color"]);

            zOrder = NumberConverter.ParseFloat(Initdata["ZOrder", "0.0"].Text);
            GBXMLContainer ch = Initdata["Children"];
            foreach (GBXMLContainer container in ch.Children)
            {
                string type = container["Type"].Text;
                Type chType = Type.GetType("GameBox.Graphics.Nodes." + type);
                RenderNode newChild = (RenderNode)Activator.CreateInstance(chType, container, this);
                childrenNode.Add(newChild);
            }

            GBXMLContainer animXML = Initdata["Animators"];
            foreach (GBXMLContainer animator in animXML.Children)
            {
                GBXMLContainer animatorParsed = ProcessManager.ActiveProcess.patternObjects.ParsePattern(animator);
                animators.Add(new Animator(animatorParsed));
            }
        }
Пример #3
0
 public GBEvent(GBXMLContainer data_)
 {
     data = (GBXMLContainer)data_.Clone();
 }