Beispiel #1
0
 void HandleFriendApply_Disagree(CmdType type, object obj)
 {
     if (type == CmdType.Presenter)
     {
         GameFacade.ShowTips("你已拒绝对方好友申请");
     }
     else if (type == CmdType.Error)
     {
         GameFacade.ShowTips(FeedBack.Log((int)obj));
     }
 }
Beispiel #2
0
 void HandleBlackList_Delete(CmdType type, object obj)
 {
     if (type == CmdType.Presenter)
     {
         GameFacade.ShowTips("将对方从黑名单里移除");
     }
     else if (type == CmdType.Error)
     {
         GameFacade.ShowTips(FeedBack.Log((int)obj));
     }
 }
Beispiel #3
0
 void HandleFriend_Delete(CmdType type, object obj)
 {
     if (type == CmdType.Presenter)
     {
         GameFacade.ShowTips("删除成功");
     }
     else if (type == CmdType.Error)
     {
         GameFacade.ShowTips(FeedBack.Log((int)obj));
     }
 }
Beispiel #4
0
 void HandleRegist(CmdType type, object msg)
 {
     if (type == CmdType.Presenter)
     {
         GameFacade.ShowTips("register success");
     }
     else if (type == CmdType.Error)
     {
         GameFacade.ShowTips(FeedBack.Log((int)msg));
     }
 }
 void HandleProject_Add(CmdType type, object obj)
 {
     if (type == CmdType.Presenter)
     {
         GameFacade.ShowTips("添加项目成功");
     }
     else if (type == CmdType.Error)
     {
         GameFacade.ShowTips(FeedBack.Log((int)obj));
     }
 }
Beispiel #6
0
 void HandleBlackList_Check(CmdType type, object obj)
 {
     if (type == CmdType.Presenter)
     {
         RepeatedField <UserMessageModel> Rsp = obj as RepeatedField <UserMessageModel>;
         SetBlackList(Rsp);
     }
     else if (type == CmdType.Error)
     {
         GameFacade.ShowTips(FeedBack.Log((int)obj));
     }
 }
Beispiel #7
0
 void HandleLogin(CmdType type, object msg)
 {
     if (type == CmdType.Presenter)
     {
         GameFacade.ShowTips("login success");
         UIManager.SwitchUI <UILobby>();
     }
     else if (type == CmdType.Error)
     {
         GameFacade.ShowTips(FeedBack.Log((int)msg));
     }
 }
 void HandleProject_Check(CmdType type, object obj)
 {
     if (type == CmdType.Presenter)
     {
         RepeatedField <ProjectModel> projectListModel = obj as RepeatedField <ProjectModel>;
         SetProject(projectListModel);
     }
     else if (type == CmdType.Error)
     {
         GameFacade.ShowTips(FeedBack.Log((int)obj));
     }
 }
 void HandleUser_Update(CmdType type, object msg)
 {
     if (type == CmdType.Presenter)
     {
         GameFacade.ShowTips("修改成功");
         UserMessageModel user = msg as UserMessageModel;
         SetPlayer(user);
     }
     else if (type == CmdType.Error)
     {
         GameFacade.ShowTips(FeedBack.Log((int)msg));
     }
 }
Beispiel #10
0
 void HandleUserMessage_Look(CmdType type, object obj)
 {
     if (type == CmdType.Presenter)
     {
         UserMessageModel Rsp = obj as UserMessageModel;
         RepeatedField <UserMessageModel> addions = new RepeatedField <UserMessageModel>();
         addions.Add(Rsp);
         SetFriendAddition(addions);
     }
     else if (type == CmdType.Error)
     {
         GameFacade.ShowTips(FeedBack.Log((int)obj));
     }
 }