예제 #1
0
        private void SendCommand(InterChatCommandType type, object value)
        {
            var msg = new InterChatCommandMsg {
                TypeCode = (int)type, Content = Convert.ToString(value)
            };

            _session.Send(msg);
        }
예제 #2
0
파일: Program.cs 프로젝트: ktj007/mmo
        internal void BroadcastCommandMsgWithNoLock(InterChatCommandType commandType, string content)
        {
            var msg = new InterChatCommandMsg
            {
                TypeCode = (int)commandType,
                Content = content
            };

            foreach (var eachSession in _interChatUserMap.Keys)
                eachSession.Send(msg);
        }
예제 #3
0
파일: FormInterChat.cs 프로젝트: ktj007/mmo
 private void SendCommand(InterChatCommandType type, object value)
 {
     var msg = new InterChatCommandMsg {TypeCode = (int) type, Content = Convert.ToString(value)};
     _session.Send(msg);
 }
예제 #4
0
파일: Program.cs 프로젝트: ktj007/mmo
 internal void BroadcastCommandMsgWithLock(InterChatCommandType commandType, string content)
 {
     _interChatLock.DoRead(() => BroadcastCommandMsgWithNoLock(commandType, content));
 }