public SceneCommandInfo Load(XElement node, string basePath)
        {
            var info = new SceneSoundCommandInfo();

            info.SoundInfo = new SoundInfo { Name = node.RequireAttribute("name").Value };

            return info;
        }
示例#2
0
 private void SoundCommand(SceneSoundCommandInfo command)
 {
     Engine.Instance.SoundSystem.PlaySfx(command.SoundInfo.Name);
 }
        public static SceneSoundCommandInfo FromXml(XElement node, string basePath)
        {
            var info = new SceneSoundCommandInfo();

            info.SoundInfo = SoundInfo.FromXml(node, basePath);

            return info;
        }