示例#1
0
文件: C3poTalk.cs 项目: Elders/c3po
        private IC3poSpeachProvider HowToSpeakMaster(C3poVoiceInterface speachProvider)
        {
            switch (speachProvider)
            {
            case C3poVoiceInterface.Console:
                return(new C3poConsoleSpeachProvider());

            case C3poVoiceInterface.LibLog:
                return(new C3poLibLogSpeachProvider());

            default:
                return(null);
            }
        }
示例#2
0
文件: C3poTalk.cs 项目: Elders/c3po
 public C3poTalk(C3poVoiceInterface speachProvider = C3poVoiceInterface.Silent)
 {
     Says = HowToSpeakMaster(speachProvider);
 }
示例#3
0
 public void AddVoiceInterface(C3poVoiceInterface voiceInterface)
 {
     languages.Add(new C3poTalk(voiceInterface));
 }