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

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

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

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

            return info;
        }