Documentation
¶
Index ¶
Constants ¶
View Source
const ( None = iota Freemod )
SpecialModes
View Source
const ( LoginFailed = -1 ClientOutdated = -2 LoginBanned = -3 LoginMultiAcc = -4 LoginException = -5 RequireSupporter = -6 RequireVerification = -8 )
Login Exception UserID's
View Source
const ( ClientSendUserStatus = 0 ClientSendIrcMessage = 1 ClientExit = 2 ClientRequestStatusUpdate = 3 ClientPong = 4 BanchoLoginReply = 5 BanchoCommandError = 6 BanchoSendMessage = 7 BanchoPing = 8 BanchoHandleIrcChangeUsername = 9 BanchoHandleIrcQuit = 10 BanchoHandleOsuUpdate = 11 BanchoHandleUserQuit = 12 BanchoSpectatorJoined = 13 BanchoSpectatorLeft = 14 BanchoSpectateFrames = 15 ClientStartSpectating = 16 ClientStopSpectating = 17 ClientSpectateFrames = 18 BanchoVersionUpdate = 19 ClientErrorReport = 20 ClientCantSpectate = 21 BanchoSpectatorCantSpectate = 22 BanchoGetAttention = 23 BanchoAnnounce = 24 ClientSendIrcMessagePrivate = 25 BanchoMatchUpdate = 26 BanchoMatchNew = 27 BanchoMatchDisband = 28 ClientLobbyPart = 29 ClientLobbyJoin = 30 ClientMatchCreate = 31 ClientMatchJoin = 32 ClientMatchPart = 33 BanchoMatchJoinSuccess = 36 BanchoMatchJoinFail = 37 ClientMatchChangeSlot = 38 ClientMatchReady = 39 ClientMatchLock = 40 ClientMatchChangeSettings = 41 BanchoFellowSpectatorJoined = 42 BanchoFellowSpectatorLeft = 43 ClientMatchStart = 44 BanchoMatchStart = 46 ClientMatchScoreUpdate = 47 BanchoMatchScoreUpdate = 48 ClientMatchComplete = 49 BanchoMatchTransferHost = 50 ClientMatchChangeMods = 51 ClientMatchLoadComplete = 52 BanchoMatchAllPlayersLoaded = 53 ClientMatchNoBeatmap = 54 ClientMatchNotReady = 55 ClientMatchFailed = 56 BanchoMatchPlayerFailed = 57 BanchoMatchComplete = 58 ClientMatchHasBeatmap = 59 ClientMatchSkipRequest = 60 BanchoMatchSkip = 61 ClientChannelJoin = 63 BanchoChannelJoinSuccess = 64 BanchoChannelAvailable = 65 BanchoChannelRevoked = 66 BanchoChannelAvailableAutojoin = 67 ClientBeatmapInfoRequest = 68 BanchoBeatmapInfoReply = 69 ClientMatchTransferHost = 70 BanchoLoginPermissions = 71 BanchoFriendsList = 72 ClientFriendAdd = 73 ClientFriendRemove = 74 BanchoProtocolNegotiation = 75 BanchoTitleUpdate = 76 ClientMatchChangeTeam = 77 ClientChannelLeave = 78 ClientReceiveUpdates = 79 BanchoMonitor = 80 BanchoMatchPlayerSkipped = 81 ClientSetIrcAwayMessage = 82 BanchoUserPresence = 83 ClientUserStatsRequest = 85 BanchoRestart = 86 ClientInvite = 87 BanchoInvite = 88 BanchoChannelListingComplete = 89 ClientMatchChangePassword = 90 BanchoMatchChangePassword = 91 BanchoBanInfo = 92 ClientSpecialMatchInfoRequest = 93 BanchoUserSilenced = 94 BanchoUserPresenceSingle = 95 BanchoUserPresenceBundle = 96 ClientUserPresenceRequest = 97 ClientUserPresenceRequestAll = 98 ClientUserToggleBlockNonFriendPM = 99 BanchoUserPMBlocked = 100 BanchoTargetIsSilenced = 101 BanchoVersionUpdateForced = 102 BanchoSwitchServer = 103 BanchoAccountRestricted = 104 BanchoRTX = 105 ClientMatchAbort = 106 BanchoSwitchTourneyServer = 107 ClientSpecialJoinMatchChannel = 108 ClientSpecialLeaveMatchChannel = 109 )
PacketID list by Itsyuka https://github.com/Itsyuka/osu-packet under MIT License
View Source
const ( Userperm = 1 << iota BAT Supporter Moderator Developer Administrator TorneyStuff )
UserPerm
View Source
const ( SlotOpen = 1 << iota SlotLocked SlotNotReady SlotReady SlotNoMap SlotPlaying SlotComplete SlotQuit )
SlotStatus
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeatmapInfo ¶
type BeatmapInfo struct { ScoreID uint16 BeatmapID uint32 BeatmapSetID uint32 ForumThreadID uint32 RankedStatus byte OsuLetter byte CTBLetter byte TaikoLetter byte ManiaLetter byte BeatmapChecksumm string }
BeatmapInfo is to send the BeatmapInfo to our client. IDK How but i managed to reverse engineer it.
type ClientSendUserStatusStruct ¶
type ClientSendUserStatusStruct struct { Status byte StatusText string BeatmapChecksum string CurrentMods uint32 PlayMode byte BeatmapID uint32 }
ClientSendUserStatusStruct for user status
type Config ¶
type Config struct { Server struct { Hostname string Port int FreeDirect bool Debug bool } API struct { KokoroHost string KokoroAPIKey string APIKey string } MySQL consts.MySQLConf Redis struct { Hostname string Port int } }
Config is for the config.yml file
type MessageStruct ¶
MessageStruct for Messages
type Packet ¶
Packet struct is simply a packet
func (*Packet) SetPacketData ¶
SetPacketData set's the Packet data
func (*Packet) ToByteArray ¶
ToByteArray retuns a ByteArray of the written Packet.
type UserPresenceStruct ¶
type UserPresenceStruct struct { UserID uint32 Username string Timezone byte CountryID byte Permissions byte Lon float64 Lat float64 Rank uint32 }
UserPresenceStruct for User presences
type UserQuitStruct ¶
UserQuitStruct if a user quits/timeout
type UserStatsStruct ¶
type UserStatsStruct struct { UserID uint32 Status byte StatusText string BeatmapChecksum string CurrentMods uint32 PlayMode byte BeatmapID uint32 RankedScore uint64 Accuracy float32 PlayCount uint32 TotalScore uint64 Rank uint32 PeppyPoints uint16 }
UserStatsStruct Stats ofc.
Click to show internal directories.
Click to hide internal directories.