Exemple #1
0
        /// <summary>
        ///     Joins a chat channel
        /// </summary>
        /// <param name="name"></param>
        public void JoinChatChannel(string name,
                                    DOTAChatChannelType_t type = DOTAChatChannelType_t.DOTAChannelType_Custom)
        {
            var joinChannel = new ClientGCMsgProtobuf <CMsgDOTAJoinChatChannel>((uint)EDOTAGCMsg.k_EMsgGCJoinChatChannel);

            joinChannel.Body.channel_name = name;
            joinChannel.Body.channel_type = type;
            Send(joinChannel, 570);
        }
        public void JoinChat(string chatName, DOTAChatChannelType_t channelType)
        {
            var request = new ClientGCMsgProtobuf <CMsgDOTAJoinChatChannel>((uint)EDOTAGCMsg.k_EMsgGCJoinChatChannel);

            request.Body.channel_name = chatName;
            request.Body.channel_type = channelType;
            _gameCoordinator.Send(request, APP_ID);
            _logger.Info("Joining chat: " + chatName);
        }
Exemple #3
0
        public void JoinChat(string name, DOTAChatChannelType_t type)
        {
            var msg = new ClientGCMsgProtobuf <CMsgDOTAJoinChatChannel>(
                (uint)EDOTAGCMsg.k_EMsgGCJoinChatChannel);

            msg.Body.channel_name = name;
            msg.Body.channel_type = type;
            Bot.Coordinator.Send(msg, Games.DotaGameId);
        }
Exemple #4
0
 /// <summary>
 ///     Joins a chat channel. Note that limited Steam accounts cannot join chat channels.
 /// </summary>
 /// <param name="name">Name of the chat channel</param>
 /// <param name="type">Type of the chat channel</param>
 public void JoinChatChannel(string name,
     DOTAChatChannelType_t type = DOTAChatChannelType_t.DOTAChannelType_Custom)
 {
     var joinChannel = new ClientGCMsgProtobuf<CMsgDOTAJoinChatChannel>((uint) EDOTAGCMsg.k_EMsgGCJoinChatChannel);
     joinChannel.Body.channel_name = name;
     joinChannel.Body.channel_type = type;
     Send(joinChannel);
 }
Exemple #5
0
 public void JoinChat(string name, DOTAChatChannelType_t type) {
     var msg = new ClientGCMsgProtobuf<CMsgDOTAJoinChatChannel>(
         (uint) EDOTAGCMsg.k_EMsgGCJoinChatChannel);
     msg.Body.channel_name = name;
     msg.Body.channel_type = type;
     Bot.Coordinator.Send(msg, Games.DotaGameId);
 }