Beispiel #1
0
 public void AskChangeHeaderId(uint headerID)
 {
     this.userDbData.ChangeUserDbData(UserDBDataType.HeaderId, headerID);
     this.PostMsgToGCNotifyNewHeaderid(this.guid, headerID);
     //notify new header to on-line friend
     foreach (KeyValuePair <ulong, UserRelationshipInfo> kv in this.userDbData.friendListMap)
     {
         CSUser user = CS.instance.userMgr.GetUser(kv.Value.guididx);
         if (user != null && user.userPlayingStatus == UserPlayingStatus.Playing)
         {
             user.SynUserSNSList(this.guid, RelationShip.Friends);
         }
     }
     //todo
     //string log = $"{headerID}{LOG_SIGN}{this.userDbData.szNickName}";
     //CSSGameLogMgr::GetInstance().AddGameLog( eLog_HeadUse, this.GetUserDBData().sPODUsrDBData.un64ObjIdx, mystream.str() );
 }
Beispiel #2
0
 private ErrorCode NotifyUserPlayState()
 {
     foreach (KeyValuePair <ulong, UserRelationshipInfo> kv in this.userDbData.friendListMap)
     {
         CSUser user = CS.instance.userMgr.GetUser(kv.Value.guididx);
         if (null == user)
         {
             continue;
         }
         if (!user.CheckIfInFriendList(this.guid))
         {
             continue;
         }
         if (UserPlayingStatus.Playing == user.userPlayingStatus)
         {
             user.SynUserSNSList(this.guid, kv.Value.relationShip);
         }
     }
     return(ErrorCode.Success);
 }