private bool SendFriendListToLocalServer() { bool result = false; if (_hasLocalHost) { List <RailFriendInfo> list = new List <RailFriendInfo>(); if (GetRailFriendList(list)) { WeGameFriendListInfo t = new WeGameFriendListInfo { _friendList = list }; IPCMessage iPCMessage = new IPCMessage(); iPCMessage.Build(IPCMessageType.IPCMessageTypeNotifyFriendList, t); result = _msgServer.SendMessage(iPCMessage); WeGameHelper.WriteDebugString("NotifyFriendListToServer: " + result.ToString()); } } return(result); }
private bool SendFriendListToLocalServer() { bool flag = false; if (this._hasLocalHost) { List <RailFriendInfo> list = new List <RailFriendInfo>(); if (this.GetRailFriendList(list)) { WeGameFriendListInfo t = new WeGameFriendListInfo() { _friendList = list }; IPCMessage msg = new IPCMessage(); msg.Build <WeGameFriendListInfo>(IPCMessageType.IPCMessageTypeNotifyFriendList, t); flag = this._msgServer.SendMessage(msg); WeGameHelper.WriteDebugString("NotifyFriendListToServer: " + flag.ToString()); } } return(flag); }
private void UpdateFriendList(WeGameFriendListInfo friendListInfo) { this._wegameFriendList = friendListInfo._friendList; WeGameHelper.WriteDebugString("On update friend list - " + this.DumpFriendListString(friendListInfo._friendList)); }