private void S2SSendGroupUpdate(NebulaCommon.Group.Group group) { UpdateZoneForGroupMembers(group); S2SGroupUpdateEvent evt = new S2SGroupUpdateEvent { group = group.GetInfo() }; EventData evtData = new EventData((byte)S2SEventCode.GroupUpdate, evt); mApplication.MasterPeer.SendEvent(evtData, new SendParameters()); }
private void SendGroupUpdateToClients(NebulaCommon.Group.Group group) { foreach (var member in group.members) { SelectCharacterClientPeer peer; if (mApplication.Clients.TryGetPeerForCharacterId(member.Value.characterID, out peer)) { GroupUpdateEvent evt = new GroupUpdateEvent { groupHash = group.GetInfo() }; EventData evtData = new EventData((byte)SelectCharacterEventCode.GroupUpdateEvent, evt); peer.SendEvent(evtData, new SendParameters()); } } }