JubeatPlus 3.9.11
Loading...
Searching...
No Matches
<SharePlayManagerDelegate> Protocol Reference

Delegate through which a SharePlayManager reports discovery, connection, data-transfer, and gameplay-result events. More...

#include <SharePlayManager.h>

Inheritance diagram for <SharePlayManagerDelegate>:
Collaboration diagram for <SharePlayManagerDelegate>:

Instance Methods

(void) - sharePlayManager:receiveProgress:
 Reports the progress of the incoming music-data stream as a fraction in 0..1.
(void) - sharePlayManager:findHostID:
 A candidate host was discovered while browsing.
(void) - sharePlayManager:lostHostID:
 A previously discovered host is no longer reachable.
(void) - sharePlayManagerConnectHost:
 The client established a connection to the host.
(void) - sharePlayManagerDisconnect:
 The client accepted a role change back to the ready-to-invite state after a drop.
(void) - sharePlayManager:disconnectClient:
 The host lost its client, or gave up clock synchronisation.
(void) - sharePlayManager:receiveExistMusicData:
 The host learned whether the client already has the music data.
(void) - sharePlayManagerSuccessSendMusicData:
 The music data was delivered to the client successfully.
(void) - sharePlayManagerHostSelectStart:
 The host chose the song and requested the shared play to begin.
(void) - sharePlayManager:startMusicTime:
 Requests that play begin after the given number of seconds, clock-corrected per side.
(BOOL) - sharePlayManager:receiveMusicInfo:
 The client received the song's metadata and is asked whether it accepts it.
(BOOL) - sharePlayManager:musicDataReceived:
 The client received the music data payload.
(void) - sharePlayManagerAllClientReady:
 Both sides signalled they are ready to load the chart.
(void) - sharePlayManagerAllClientLoaded:
 Both sides finished loading the chart.
(void) - sharePlayManagerConnectClient:
 The clock handshake settled and the client connection is confirmed on the host.
(void) - sharePlayManager:receiveScore:
 A mid-play score update arrived from the peer.
(void) - sharePlayManager:receiveFinalScore:bonus:fullCombo:
 The peer's end-of-play result arrived.

Detailed Description

Delegate through which a SharePlayManager reports discovery, connection, data-transfer, and gameplay-result events.

Method Documentation

◆ sharePlayManager:disconnectClient:

- (void) sharePlayManager: (SharePlayManager *) manager
disconnectClient: (MCPeerID *) peer 
optionalrequired

The host lost its client, or gave up clock synchronisation.

Parameters
managerThe reporting manager.
peerThe peer that dropped.

◆ sharePlayManager:findHostID:

- (void) sharePlayManager: (SharePlayManager *) manager
findHostID: (MCPeerID *) hostID 
optionalrequired

A candidate host was discovered while browsing.

Parameters
managerThe reporting manager.
hostIDThe discovered host's peer identifier.

◆ sharePlayManager:lostHostID:

- (void) sharePlayManager: (SharePlayManager *) manager
lostHostID: (MCPeerID *) hostID 
optionalrequired

A previously discovered host is no longer reachable.

Parameters
managerThe reporting manager.
hostIDThe lost host's peer identifier.

◆ sharePlayManager:musicDataReceived:

- (BOOL) sharePlayManager: (SharePlayManager *) manager
musicDataReceived: (NSData *) musicData 
optionalrequired

The client received the music data payload.

Parameters
managerThe reporting manager.
musicDataThe received music data.
Returns
Whether loading of the received data succeeded.

◆ sharePlayManager:receiveExistMusicData:

- (void) sharePlayManager: (SharePlayManager *) manager
receiveExistMusicData: (BOOL) exist 
optionalrequired

The host learned whether the client already has the music data.

Parameters
managerThe reporting manager.
existWhether the client reported it already has the data.

◆ sharePlayManager:receiveFinalScore:bonus:fullCombo:

- (void) sharePlayManager: (SharePlayManager *) manager
receiveFinalScore: (int) score
bonus: (int) bonus
fullCombo: (BOOL) fullCombo 
optionalrequired

The peer's end-of-play result arrived.

Parameters
managerThe reporting manager.
scoreThe peer's final score.
bonusThe peer's end-of-play bonus.
fullComboWhether the peer achieved a full combo.

◆ sharePlayManager:receiveMusicInfo:

- (BOOL) sharePlayManager: (SharePlayManager *) manager
receiveMusicInfo: (NSDictionary *) musicInfo 
optionalrequired

The client received the song's metadata and is asked whether it accepts it.

Parameters
managerThe reporting manager.
musicInfoThe song's metadata dictionary.
Returns
Whether the client already possesses the music data.

◆ sharePlayManager:receiveProgress:

- (void) sharePlayManager: (SharePlayManager *) manager
receiveProgress: (float) progress 
optional

Reports the progress of the incoming music-data stream as a fraction in 0..1.

Parameters
managerThe reporting manager.
progressThe received fraction, clamped to 1.0.

◆ sharePlayManager:receiveScore:

- (void) sharePlayManager: (SharePlayManager *) manager
receiveScore: (int) score 
optionalrequired

A mid-play score update arrived from the peer.

Parameters
managerThe reporting manager.
scoreThe peer's score.

◆ sharePlayManager:startMusicTime:

- (void) sharePlayManager: (SharePlayManager *) manager
startMusicTime: (float) time 
optionalrequired

Requests that play begin after the given number of seconds, clock-corrected per side.

Parameters
managerThe reporting manager.
timeSeconds from now until play should start.

◆ sharePlayManagerAllClientLoaded:

- (void) sharePlayManagerAllClientLoaded: (SharePlayManager *) manager
optionalrequired

Both sides finished loading the chart.

Parameters
managerThe reporting manager.

◆ sharePlayManagerAllClientReady:

- (void) sharePlayManagerAllClientReady: (SharePlayManager *) manager
optionalrequired

Both sides signalled they are ready to load the chart.

Parameters
managerThe reporting manager.

◆ sharePlayManagerConnectClient:

- (void) sharePlayManagerConnectClient: (SharePlayManager *) manager
optionalrequired

The clock handshake settled and the client connection is confirmed on the host.

Parameters
managerThe reporting manager.

◆ sharePlayManagerConnectHost:

- (void) sharePlayManagerConnectHost: (SharePlayManager *) manager
optionalrequired

The client established a connection to the host.

Parameters
managerThe reporting manager.

◆ sharePlayManagerDisconnect:

- (void) sharePlayManagerDisconnect: (SharePlayManager *) manager
optionalrequired

The client accepted a role change back to the ready-to-invite state after a drop.

Parameters
managerThe reporting manager.

◆ sharePlayManagerHostSelectStart:

- (void) sharePlayManagerHostSelectStart: (SharePlayManager *) manager
optionalrequired

The host chose the song and requested the shared play to begin.

Parameters
managerThe reporting manager.

◆ sharePlayManagerSuccessSendMusicData:

- (void) sharePlayManagerSuccessSendMusicData: (SharePlayManager *) manager
optionalrequired

The music data was delivered to the client successfully.

Parameters
managerThe reporting manager.

The documentation for this protocol was generated from the following file: