Binato/server/interfaces/OsuPacketWriter.ts

71 lines
3.1 KiB
TypeScript
Raw Normal View History

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,
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,
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,
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,
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,
MatchTransferHost() : OsuPacketWriter,
2023-08-20 13:03:01 +01:00
MatchAllPlayersLoaded() : OsuPacketWriter,
MatchPlayerFailed(data:number) : OsuPacketWriter,
2023-08-20 13:03:01 +01:00
MatchComplete() : OsuPacketWriter,
MatchSkip() : OsuPacketWriter,
Unauthorised() : OsuPacketWriter,
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,
UserPresence(data:UserPresenceData) : OsuPacketWriter,
2023-10-04 12:28:47 +01:00
Restart(data:number) : OsuPacketWriter,
Invite(data:MessageData) : OsuPacketWriter,
2023-08-20 13:03:01 +01:00
ChannelListingComplete() : OsuPacketWriter,
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,
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,
SwitchTourneyServer(data:string) : OsuPacketWriter
2023-08-20 13:03:01 +01:00
toBuffer : Buffer
}