new Banchojs()
- Source:
Properties:
Name | Type | Description |
---|---|---|
BanchoClient |
BanchoClient | The BanchoClient class (Client alias is kept for history purposes) |
OutgoingBanchoMessage |
OutgoingBanchoMessage | The OutgoingMessage class to produce messages |
ConnectStates |
ConnectStates | An enum containing all the possible ConnectStates of bancho.js |
BanchoLobbyPlayerStates |
BanchoLobbyPlayerStates | An enum containing the different player states for players in lobbies |
BanchoLobbyTeamModes |
BanchoLobbyTeamModes | An enum containing the 4 different team modes in Bancho |
BanchoLobbyTeams |
BanchoLobbyTeams | An enum containing the 2 different teams in a multiplayer lobby |
BanchoLobbyWinConditions |
BanchoLobbyWinConditions | An enum containing the 4 win conditions on Bancho |
Methods
-
isBanchoChannel(channel)
-
Compares the provided object and return true if the object is an instance of BanchoChannel.
Parameters:
Name Type Description channel
any -
isBanchoChannelMember(member)
-
Compares the provided object and return true if the object is an instance of BanchoChannelMember.
Parameters:
Name Type Description member
any -
isBanchoLobby(lobby)
-
Compares the provided object and return true if the object is an instance of BanchoLobby.
Parameters:
Name Type Description lobby
any -
isBanchoMessage(message)
-
Compares the provided object and return true if the object is an instance of BanchoMessage.
Parameters:
Name Type Description message
any -
isBanchoMod(mod)
-
Compares the provided object and return true if the object is an instance of BanchoMod.
Parameters:
Name Type Description mod
any -
isBanchoMultiplayerChannel(channel)
-
Compares the provided object and return true if the object is an instance of BanchoMultiplayerChannel.
Parameters:
Name Type Description channel
any -
isBanchoUser(user)
-
Compares the provided object and return true if the object is an instance of BanchoUser.
Parameters:
Name Type Description user
any -
isChannelMessage(message)
-
Compares the provided object and return true if the object is an instance of ChannelMessage.
Parameters:
Name Type Description message
any -
isPrivateMessage(message)
-
Compares the provided object and return true if the object is an instance of PrivateMessage.
Parameters:
Name Type Description message
any