Beispiel #1
0
        public override void ParseXml(XmlParser xmlparser, string nodename)
        {
            string rootnode = xmlparser.GetRootNode();
            rootnode = rootnode + "->" + nodename + "->";

            Drag = xmlparser.GetFloat(rootnode + "Drag");
            AngularVelocity = xmlparser.GetFloat(rootnode + "AngularVelocity");
            Velocity = xmlparser.GetVector2(rootnode + "Velocity");
        }
Beispiel #2
0
        public override void ParseXml(XmlParser xmlparser, string nodename)
        {
            string rootnode = xmlparser.GetRootNode() + "->Render->";
            Texture = LoadTexture(xmlparser.GetString(rootnode + "Texture"));

            Color = xmlparser.GetColor(rootnode + "Color");
            Alpha = xmlparser.GetFloat(rootnode + "Alpha");
            Scale = xmlparser.GetVector2(rootnode + "Scale");
            Layer = xmlparser.GetFloat(rootnode + "Layer");
        }
Beispiel #3
0
        public override void ParseXml(XmlParser xmlparser, string nodename)
        {
            string rootnode = xmlparser.GetRootNode();
            rootnode = rootnode + "->"+nodename+"->";
            try
            {
                Position = xmlparser.GetVector2(rootnode + "Position");
            }
            catch{}

            try
            {
                Angle = xmlparser.GetFloat(rootnode + "Angle");
            }
            catch{}
        }
Beispiel #4
0
        public override void ParseXml(XmlParser xmlparser, string nodename)
        {
            base.ParseXml(xmlparser, nodename);
            string rootnode = xmlparser.GetRootNode();
            rootnode = rootnode + "->" + nodename + "->";

            TileSize = xmlparser.GetVector2(rootnode + "TileSize");
            FramesPerSecond = xmlparser.GetInt(rootnode + "FramesPerSecond");
            CurrentFrame = xmlparser.GetInt(rootnode + "CurrentFrame");
            Key = xmlparser.GetString(rootnode + "Key");
        }
Beispiel #5
0
        public override void ParseXml(XmlParser xmlparser, string nodename)
        {
            string rootnode = xmlparser.GetRootNode();
            rootnode = rootnode + "->" + nodename + "->";

            Milliseconds = xmlparser.GetInt(rootnode + "Milliseconds");
            if (xmlparser.GetBool(rootnode + "StartAfterCreation"))
            {
                Start();
            }
        }
Beispiel #6
0
 public virtual void ParseXml(XmlParser xmlparser, string nodename)
 {
 }