Example #1
0
 /// <summary>
 /// Adds a RPGString to the text manager cache.
 /// </summary>
 /// <param name="input"></param>
 public static void AddTextToCache(DataTypes.RPGString input)
 {
     textCache.Insert(0, input);
 }
Example #2
0
 /// <summary>
 /// Turns an RPG String datatype into a string and sets parameters accordingly for rendering, then adds to cache.
 /// </summary>
 /// <param name="text"></param>
 /// <param name="name"></param>
 /// <param name="textSpeed"></param>
 public static void Say(string text, string name = "???", int textSpeed = 4)
 {
     DataTypes.RPGString speech = new DataTypes.RPGString(FilterString(text), name, textSpeed);
     AddTextToCache(speech);
 }