public override void ParseXml(XmlParser xmlparser, string path) { string rootnode = xmlparser.GetRootNode(); rootnode = rootnode + "->" + path + "->"; Volume = xmlparser.GetFloat(rootnode + "Volume"); Pan = xmlparser.GetFloat(rootnode + "Pan"); Pitch = xmlparser.GetFloat(rootnode + "Pitch"); Loop = xmlparser.GetBool(rootnode + "Loop"); SoundEffect = LoadSound(rootnode + "SoundEffect").CreateInstance(); }
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(); } }