Пример #1
0
        /// <summary>
        /// Adds a chat room to the list of currently joined chat rooms.
        /// </summary>
        /// <param name="steamID">The SteamID of the chat room.</param>
        /// <param name="name">The name of the chat room.</param>
        /// <returns>The created chat room.</returns>
        public ChatRoom AddChatRoom(SteamID steamID, string name)
        {
            var chatRoom = new ChatRoom(_steamNerd, steamID, name);
            _chatrooms[steamID] = chatRoom;

            return chatRoom;
        }
Пример #2
0
 /// <summary>
 /// When someone other than the bot enters the chat, signal the 
 /// modules.
 /// </summary>
 /// <param name="chatRoom"></param>
 /// <param name="user"></param>
 /// <param name="callback"></param>
 public void EnteredChat(
     ChatRoom chatRoom, 
     User user, 
     SteamFriends.PersonaStateCallback callback
 )
 {
     foreach (var module in chatRoom.GetAllModules())
     {
         module.OnChatEnter(callback);
     }
 }