public virtual void AddMessage(string messageText, string actorId = null, string voiceClipName = null) { var actorNameText = charManager.GetDisplayName(actorId) ?? actorId; SpawnMessage(messageText, actorNameText, voiceClipName != null ? new List <string> { voiceClipName } : null); }
public virtual void AddMessage(string messageText, string actorId = null, string voiceClipName = null, PlaybackSpot?rollbackSpot = null) { if (StripTags) { messageText = StripFormatting(messageText); } var actorNameText = charManager.GetDisplayName(actorId) ?? actorId; SpawnMessage(messageText, actorNameText, (AllowReplayVoice && !string.IsNullOrEmpty(voiceClipName)) ? new List <string> { voiceClipName } : null, (AllowRollback && rollbackSpot.HasValue) ? rollbackSpot.Value : PlaybackSpot.Invalid); }