Binato/server/interfaces/OsuPacketWriter.ts

67 lines
2.7 KiB
TypeScript
Raw Normal View History

2023-09-10 12:59:22 +01:00
import MatchData from "./MatchData"
2023-10-04 12:28:47 +01:00
import MatchScoreData from "./MatchScoreData"
2023-09-10 12:59:22 +01:00
import MessageData from "./MessageData"
2023-10-04 12:28:47 +01:00
import StatusUpdateData from "./StatusUpdateData"
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,
HandleIrcChangeUsername(data:any) : OsuPacketWriter,
HandleIrcQuit() : OsuPacketWriter,
2023-10-04 12:28:47 +01:00
HandleOsuUpdate(data:StatusUpdateData) : OsuPacketWriter,
2023-08-20 13:03:01 +01:00
HandleUserQuit(data:any) : OsuPacketWriter,
SpectatorJoined(data:any) : OsuPacketWriter,
SpectatorLeft(data:any) : OsuPacketWriter,
SpectateFrames(data:any) : OsuPacketWriter,
VersionUpdate() : OsuPacketWriter,
SpectatorCantSpectate(data:any) : OsuPacketWriter,
GetAttention() : OsuPacketWriter,
Announce(data:string) : OsuPacketWriter,
MatchUpdate(data:MatchData) : OsuPacketWriter,
2023-10-04 12:28:47 +01:00
MatchNew(data:MatchData) : OsuPacketWriter,
2023-08-20 13:03:01 +01:00
MatchDisband(data:any) : 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,
MatchScoreUpdate(data:MatchScoreData) : OsuPacketWriter,
2023-08-20 13:03:01 +01:00
MatchTransferHost(data:any) : OsuPacketWriter,
MatchAllPlayersLoaded() : OsuPacketWriter,
MatchPlayerFailed(data:any) : OsuPacketWriter,
MatchComplete() : OsuPacketWriter,
MatchSkip() : OsuPacketWriter,
Unauthorised() : OsuPacketWriter,
ChannelJoinSuccess(data:any) : OsuPacketWriter,
ChannelAvailable(data:any) : OsuPacketWriter,
ChannelRevoked(data:any) : OsuPacketWriter,
ChannelAvailableAutojoin(data:any) : OsuPacketWriter,
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-08-20 13:03:01 +01:00
UserPresence(data:any) : OsuPacketWriter,
2023-10-04 12:28:47 +01:00
Restart(data:number) : OsuPacketWriter,
2023-08-20 13:03:01 +01:00
Invite(data:any) : OsuPacketWriter,
ChannelListingComplete() : OsuPacketWriter,
MatchChangePassword(data:any) : OsuPacketWriter,
BanInfo(data:any) : OsuPacketWriter,
UserSilenced(data:any) : OsuPacketWriter,
UserPresenceSingle(data:any) : OsuPacketWriter,
UserPresenceBundle(data:any) : OsuPacketWriter,
UserPMBlocked(data:any) : OsuPacketWriter,
TargetIsSilenced(data:any) : OsuPacketWriter,
VersionUpdateForced() : OsuPacketWriter,
SwitchServer(data:any) : OsuPacketWriter,
AccountRestricted() : OsuPacketWriter,
2023-10-04 12:28:47 +01:00
RTX(data:string) : OsuPacketWriter,
2023-08-20 13:03:01 +01:00
SwitchTourneyServer(data:any) : OsuPacketWriter
toBuffer : Buffer
}