示例#1
0
        public const string soundsFileDefault     = "Beep-SoundBible.com-923660219.wav";  // default sound for skin .None and for all not found sounds

        public static SoundSkin Produce(SoundSkinType type)
        {
            SoundSkin ret = new SoundSkin()
            {
                soundSkinType = type
            };

            switch (type)
            {
            case SoundSkinType.None:
                ret.soundsBasePath = soundsBasePathDefault;
                break;

            default:
            case SoundSkinType.Bullfight:
                ret.soundsBasePath = soundsBasePathDefault;
                //ret.Add("skeletons number changed","Cow_Moo-Mike_Koenig-42670858.wav");
                ret.Add("skeletons number changed", "SoundCartoon59.mp3");
                ret.Add("quick whistle", "cartoonsplit.mp3");
                ret.Add("crush", "crush.wav");
                ret.Add("wow cool", "wowcool.wav");
                ret.Add("evil laugh", "Evil Laugh-SoundBible.com-874992221.wav|evil-laugh-lc.wav");
                ret.Add("dog growl", "Dog Growling And Barking-SoundBible.com-883632423.wav");
                ret.Add("taking over the world", "first-we-take-manhattan.wav|first-we-take-manhattan2.wav|first-we-take-manhattan3.wav");
                ret.Add("lost all humans", "where-do-you-go.wav|where-are-you.wav|where-do-you-go-my-lovely.wav|come-back-and-save-me.wav");
                ret.Add("you were amazing", "you-were-amazing.wav");
                ret.Add("lonely", "I-am-Mr-Lonely.mp3");
                ret.Add("lady in red", "lady-in-red.wav|lady-in-red2.wav|lady-in-red3.wav");
                break;
            }

            return(ret);
        }
示例#2
0
 public void SetSoundSkin(SoundSkinType type)
 {
     soundSkin = SoundSkinFactory.Produce(type);     // can be null if type is .None
 }