Exemplo n.º 1
0
 private PhraseComposer CreatePhraseComposer( 
     ActivityParameterDictionary parameters, bool forComposeTextOnly)
 {
     var composer = new PhraseComposer(_soundManager)
     {
         TextFormat = parameters.GetParamValue("TextFormat", string.Empty),
         Parameters = parameters.GetParamValueAsArray("Parameters")
     };
     if (!forComposeTextOnly)
     {
         composer.PhraseFormat = parameters.GetParamValue("PhraseFormat", "{s*}");
         composer.Sounds = parameters.GetParamValueAsArray<string>("Sounds");
     }
     return composer;
 }
Exemplo n.º 2
0
 private PhraseComposer CreateHelpPhraseComposer(ActivityParameterDictionary parameters)
 {
     var composer = new PhraseComposer(_soundManager)
     {
         TextFormat = parameters.GetParamValue("HelpTextFormat", string.Empty),
         Parameters = parameters.GetParamValueAsArray("HelpParameters"),
         PhraseFormat = parameters.GetParamValue("HelpPhraseFormat", "{s*}"),
         Sounds = parameters.GetParamValueAsArray("HelpSounds", new string[0])
     };
     return composer;
 }