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() ); }
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); }