2023-10-06 11:19:08 +01:00
|
|
|
import ChannelData from "./packetTypes/ChannelData"
|
|
|
|
import MatchData from "./packetTypes/MatchData"
|
|
|
|
import MessageData from "./packetTypes/MessageData"
|
|
|
|
import ScoreFrameData from "./packetTypes/ScoreFrameData"
|
|
|
|
import SpectateFramesData from "./packetTypes/SpectateFramesData"
|
|
|
|
import StatusUpdateData from "./packetTypes/StatusUpdateData"
|
|
|
|
import UserPresenceData from "./packetTypes/UserPresenceData"
|
|
|
|
import UserQuitData from "./packetTypes/UserQuitData"
|
2023-08-20 13:03:01 +01:00
|
|
|
|
2023-09-10 12:59:22 +01:00
|
|
|
export default interface OsuPacketWriter {
|
2023-08-20 13:03:01 +01:00
|
|
|
// Functions
|
|
|
|
LoginReply(data:number) : OsuPacketWriter,
|
|
|
|
CommandError() : OsuPacketWriter,
|
|
|
|
SendMessage(data:MessageData) : OsuPacketWriter,
|
|
|
|
Ping() : OsuPacketWriter,
|
2023-10-06 09:48:31 +01:00
|
|
|
HandleIrcChangeUsername(data:string) : OsuPacketWriter,
|
2023-08-20 13:03:01 +01:00
|
|
|
HandleIrcQuit() : OsuPacketWriter,
|
2023-10-04 12:28:47 +01:00
|
|
|
HandleOsuUpdate(data:StatusUpdateData) : OsuPacketWriter,
|
2023-10-06 09:48:31 +01:00
|
|
|
HandleUserQuit(data:UserQuitData) : OsuPacketWriter,
|
|
|
|
SpectatorJoined(data:number) : OsuPacketWriter,
|
|
|
|
SpectatorLeft(data:number) : OsuPacketWriter,
|
|
|
|
SpectateFrames(data:SpectateFramesData) : OsuPacketWriter,
|
2023-08-20 13:03:01 +01:00
|
|
|
VersionUpdate() : OsuPacketWriter,
|
2023-10-06 09:48:31 +01:00
|
|
|
SpectatorCantSpectate(data:number) : OsuPacketWriter,
|
2023-08-20 13:03:01 +01:00
|
|
|
GetAttention() : OsuPacketWriter,
|
|
|
|
Announce(data:string) : OsuPacketWriter,
|
|
|
|
MatchUpdate(data:MatchData) : OsuPacketWriter,
|
2023-10-04 12:28:47 +01:00
|
|
|
MatchNew(data:MatchData) : OsuPacketWriter,
|
2023-10-06 09:48:31 +01:00
|
|
|
MatchDisband(data:number) : OsuPacketWriter,
|
2023-10-04 12:28:47 +01:00
|
|
|
MatchJoinSuccess(data:MatchData) : OsuPacketWriter,
|
2023-08-20 13:03:01 +01:00
|
|
|
MatchJoinFail() : OsuPacketWriter,
|
2023-10-04 12:28:47 +01:00
|
|
|
FellowSpectatorJoined(data:number) : OsuPacketWriter,
|
|
|
|
FellowSpectatorLeft(data:number) : OsuPacketWriter,
|
|
|
|
MatchStart(data:MatchData) : OsuPacketWriter,
|
2023-10-06 09:52:22 +01:00
|
|
|
MatchScoreUpdate(data:ScoreFrameData) : OsuPacketWriter,
|
2023-10-06 09:48:31 +01:00
|
|
|
MatchTransferHost() : OsuPacketWriter,
|
2023-08-20 13:03:01 +01:00
|
|
|
MatchAllPlayersLoaded() : OsuPacketWriter,
|
2023-10-06 09:48:31 +01:00
|
|
|
MatchPlayerFailed(data:number) : OsuPacketWriter,
|
2023-08-20 13:03:01 +01:00
|
|
|
MatchComplete() : OsuPacketWriter,
|
|
|
|
MatchSkip() : OsuPacketWriter,
|
|
|
|
Unauthorised() : OsuPacketWriter,
|
2023-10-06 09:48:31 +01:00
|
|
|
ChannelJoinSuccess(data:string) : OsuPacketWriter,
|
|
|
|
ChannelAvailable(data:ChannelData) : OsuPacketWriter,
|
|
|
|
ChannelRevoked(data:string) : OsuPacketWriter,
|
|
|
|
ChannelAvailableAutojoin(data:ChannelData) : OsuPacketWriter,
|
2023-08-20 13:03:01 +01:00
|
|
|
BeatmapInfoReply() : OsuPacketWriter,
|
|
|
|
LoginPermissions(data:number) : OsuPacketWriter,
|
|
|
|
FriendsList(data:Array<number>) : OsuPacketWriter,
|
|
|
|
ProtocolNegotiation(data:number) : OsuPacketWriter,
|
|
|
|
TitleUpdate(data:string) : OsuPacketWriter,
|
|
|
|
Monitor() : OsuPacketWriter,
|
2023-10-04 12:28:47 +01:00
|
|
|
MatchPlayerSkipped(data:number) : OsuPacketWriter,
|
2023-10-06 09:48:31 +01:00
|
|
|
UserPresence(data:UserPresenceData) : OsuPacketWriter,
|
2023-10-04 12:28:47 +01:00
|
|
|
Restart(data:number) : OsuPacketWriter,
|
2023-10-06 09:48:31 +01:00
|
|
|
Invite(data:MessageData) : OsuPacketWriter,
|
2023-08-20 13:03:01 +01:00
|
|
|
ChannelListingComplete() : OsuPacketWriter,
|
2023-10-06 09:48:31 +01:00
|
|
|
MatchChangePassword(data:string) : OsuPacketWriter,
|
|
|
|
BanInfo(data:number) : OsuPacketWriter,
|
|
|
|
UserSilenced(data:number) : OsuPacketWriter,
|
|
|
|
UserPresenceSingle(data:number) : OsuPacketWriter,
|
|
|
|
UserPresenceBundle(data:Array<number>) : OsuPacketWriter,
|
|
|
|
UserPMBlocked(data:MessageData) : OsuPacketWriter,
|
|
|
|
TargetIsSilenced(data:MessageData) : OsuPacketWriter,
|
2023-08-20 13:03:01 +01:00
|
|
|
VersionUpdateForced() : OsuPacketWriter,
|
2023-10-06 09:48:31 +01:00
|
|
|
SwitchServer(data:number) : OsuPacketWriter,
|
2023-08-20 13:03:01 +01:00
|
|
|
AccountRestricted() : OsuPacketWriter,
|
2023-10-04 12:28:47 +01:00
|
|
|
RTX(data:string) : OsuPacketWriter,
|
2023-10-06 09:48:31 +01:00
|
|
|
SwitchTourneyServer(data:string) : OsuPacketWriter
|
2023-08-20 13:03:01 +01:00
|
|
|
|
|
|
|
toBuffer : Buffer
|
|
|
|
}
|