Пример #1
0
        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);
        }
Пример #2
0
        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);
        }