private static void operationTemple(User user,string oper) { Dictionary<string,object> map = new Dictionary<string,object>(); map.Add(Grobal.USER_OPERATION,oper); map.Add(Grobal.USER,user); Message message = new BaseMessage(serializeTool.Serialize<Dictionary<string,object>>(map)); udpTool.send(message.getData(),serverPotint); }
public void sendResultToclient(User user,string userOperation, string result) { Dictionary<string, object> map = new Dictionary<string, object>(); map.Add(Grobal.USER_OPERATION,userOperation); map.Add(Grobal.RESULT,result); map.Add(Grobal.USER,user); domain.Message msg = new BaseMessage(serializeTool.Serialize(map)); udpTool.send(msg.getData(),user.LocalPoint); }
public void sendMsg(string message_str ,User toSomebody) { Dictionary<string,object> map = new Dictionary<string,object>(); map.Add(Grobal.USER_OPERATION,Grobal.SENDMSG); map.Add(Grobal.FROM_USER,this); map.Add(Grobal.TO_USER,toSomebody); map.Add(Grobal.MESSAGE,message_str); Message message = new BaseMessage(serializeTool.Serialize<Dictionary<string,object>>(map)); udpTool.send(message.getData(),serverPotint); }