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