예제 #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");
        }
예제 #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");
        }
예제 #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{}
        }
예제 #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");
        }
예제 #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();
            }
        }
예제 #6
0
 public virtual void ParseXml(XmlParser xmlparser, string nodename)
 {
 }