public ConversationLine(
     string speaker,
     List <string> sentences,
     StoryGraphicCode code = StoryGraphicCode.Default,
     BackgroundCode bg     = BackgroundCode.Default)
 {
     _graphic    = code;
     _bg         = bg;
     _speaker    = speaker;
     _sentences  = sentences;
     _count      = 0;
     _isfinished = false;
 }
Exemple #2
0
 /// <summary>
 /// Get graphic obj for story graphic based on code
 /// </summary>
 /// <param name="storyCode"></param>
 /// <returns></returns>
 public static IGraphicObject GetStoryGraphic(StoryGraphicCode storyCode)
 {
     if (_storyGraphic.ContainsKey(storyCode))
     {
         return(_storyGraphic[storyCode]);
     }
     else
     {
         return(new GraphicObject(
                    "StoryGraphicNull",
                    new GraphicRectangle(_graphics, GraphicDimension.GraphicFrame, Color.Black)));
     }
 }