public override void InitRPCListeners(RPCConnection rpcConnection) { base.InitRPCListeners(rpcConnection); rpcConnection.RegisterServiceMethodListener(this.m_friendsNotifyService.Id, 1, new RPCContextDelegate(this.NotifyFriendAddedListenerCallback)); rpcConnection.RegisterServiceMethodListener(this.m_friendsNotifyService.Id, 2, new RPCContextDelegate(this.NotifyFriendRemovedListenerCallback)); rpcConnection.RegisterServiceMethodListener(this.m_friendsNotifyService.Id, 3, new RPCContextDelegate(this.NotifyReceivedInvitationAddedCallback)); rpcConnection.RegisterServiceMethodListener(this.m_friendsNotifyService.Id, 4, new RPCContextDelegate(this.NotifyReceivedInvitationRemovedCallback)); }
public override void InitRPCListeners(RPCConnection rpcConnection) { base.InitRPCListeners(rpcConnection); rpcConnection.RegisterServiceMethodListener(this.m_challengeNotifyService.Id, 1u, new RPCContextDelegate(this.ChallengeUserCallback)); rpcConnection.RegisterServiceMethodListener(this.m_challengeNotifyService.Id, 2u, new RPCContextDelegate(this.ChallengeResultCallback)); rpcConnection.RegisterServiceMethodListener(this.m_challengeNotifyService.Id, 3u, new RPCContextDelegate(this.OnExternalChallengeCallback)); rpcConnection.RegisterServiceMethodListener(this.m_challengeNotifyService.Id, 4u, new RPCContextDelegate(this.OnExternalChallengeResultCallback)); }