public override void ParseXml(XmlParser xp, string path) { base.ParseXml(xp, path); string rootnode = path + "->" + Name + "->"; FrameTimer.ParseXml(xp, path + "->" + Name); TileSize = xp.GetVector2(rootnode + "TileSize", Vector2.Zero); FramesPerSecond = xp.GetInt(rootnode + "FramesPerSecond", 0); CurrentFrame = xp.GetInt(rootnode + "CurrentFrame", 0); if (xp.GetBool(rootnode + "StartAfterCreation", false)) Start(); }
public override void ParseXml(XmlParser xp, string path) { base.ParseXml(xp, path); string rootnode = path + "->" + Name + "->"; Milliseconds = xp.GetInt(rootnode + "Milliseconds", 0); if (xp.GetBool(rootnode + "StartAfterCreation", false)) { Start(); } }
public override void ParseXml(XmlParser xp, string path) { base.ParseXml(xp, path); string rootnode = path + "->" + Name + "->"; TileSize = xp.GetVector2(rootnode + "TileSize", Vector2.Zero); Index = xp.GetInt(rootnode + "Index", 0); }
public override void ParseXml(XmlParser xp, string path) { base.ParseXml(xp, path); string s = xp.GetString(path + "->Stick", Stick.ToString()); if (s == "Left") { Stick = Sticks.Left; } else if (s == "Right") { Stick = Sticks.Right; } PlayerIndex = (PlayerIndex)xp.GetInt(path + "->PlayerIndex", (int)PlayerIndex); }
public override void ParseXml(XmlParser xp, string path) { base.ParseXml(xp, path); string rootnode = path + "->" + Name + "->"; HitPoints = xp.GetInt(rootnode + "HitPoints", 1); }