Example #1
0
        internal void AddChatEntry(string coach, string text)
        {
            ChatSource source = ChatSource.Spectator;

            if (string.Equals(FFB.Instance.Model.HomeCoach.Name, coach))
            {
                source = ChatSource.Home;
            }
            if (string.Equals(FFB.Instance.Model.AwayCoach.Name, coach))
            {
                source = ChatSource.Away;
            }

            ChatEntry entry = new ChatEntry(coach, source, text);

            ChatText.Add(entry);
            TriggerChatChanged(entry);
        }
Example #2
0
 private void TriggerChatChanged(ChatEntry entry)
 {
     OnChat?.Invoke(entry.Coach, entry.Source, entry.Text);
 }