Type of the object to be added.
An object that is supposed to contain all parameters required to add that type of object.
An instance of StadiumAddObjectEvent.
Creates a AutoTeamsEvent object that can be used to trigger an autoTeams event. Returning event's byId is also required to be set before it can be used.
An instance of AutoTeamsEvent.
Creates a BinaryCustomEvent object that can be used to trigger a binary custom event. Returning event's byId is also required to be set before it can be used.
The type of the binary custom event.
Any custom binary data for this specific event.
An instance of BinaryCustomEvent.
Creates a ConsistencyCheckEvent object that can be used to trigger a consistency check. Returning event's byId is also required to be set before it can be used.
The consistency data to check.
An instance of ConsistencyCheckEvent.
Creates a ControlsEvent object that can be used to (introduce new/remove existing) game input controls where each new input control is assigned the next bit of player.input value.
Type of the operation. (0: add, 1: remove).
Parameters for the specific operation.
An instance of ControlsEvent.
Creates a MooballEvent object that can be used to trigger events.
Returning event's various values might also be required to be set before it can be used,
depending on the value of type parameter.
The type of the event.
An instance of MooballEvent, or undefined if the given type is not a recognized value.
Reads bytes from a stream to create a MooballEvent object.
The stream reader to be used.
An instance of MooballEvent.
Creates a CustomEvent object that can be used to trigger a custom event. Returning event's byId is also required to be set before it can be used.
The type of the custom event.
The data of the custom event. (Any JSON object)
An instance of CustomEvent.
Creates a JoinRoomEvent object that can be used to trigger a joinRoom event. Returning event's byId must be set to 0 before it can be used.
Id of the new player.
Name of the new player.
Flag of the new player.
Avatar of the new player.
Connection string of the new player.
Auth of the new player.
An instance of JoinRoomEvent.
Creates a KickBanPlayerEvent object that can be used to trigger a kickBanPlayer event. Returning event's byId is also required to be set before it can be used.
Id of the desired player to be kicked/banned.
Reason of kicking/banning.
null, this event is interpreted as the player leaving by himself/herself.Whether this is a banning event or not.
An instance of KickBanPlayerEvent.
Creates a PauseResumeGameEvent object that can be used to trigger a pauseResumeGame event. Returning event's byId is also required to be set before it can be used.
Whether the game is desired to be paused or resumed.
An instance of PauseResumeGameEvent.
Creates a PingEvent object that can be used to update the ping values of all player. Returning event's byId must be set to 0 before it can be used.
The desired ping values for all players.
An instance of PingEvent.
Creates a PlayCustomSoundEvent object that can be used to play a custom sound.
Name of the sound to be played.
An instance of PlayCustomSoundEvent.
Creates a StadiumRemoveObjectEvent. object that can be used to remove an existing stadium object.
Type of the object to be removed.
Id of the object to be removed.
An instance of StadiumRemoveObjectEvent.
Creates a ReorderPlayersEvent object that can be used to trigger a reorderPlayers event. Returning event's byId must be set to 0 before it can be used.
The ids of players that are desired to be removed from the room's players list, reordered to match the order in idList and added back to the room's players list.
Whether to add the players to the top or bottom of the room's players list.
An instance of ReorderPlayersEvent.
Creates a SendAnnouncementEvent object that can be used to trigger a sendAnnouncement event. Returning event's byId must be set to 0 before it can be used.
The contents of the announcement message.
The color of the announcement message. Range: -1 <= color < 16777216.
Utils.numberToColor function.-1 means transparent color.The style of the announcement message. Must be one of the following:
The sound of the announcement message. Must be one of the following:
An instance of SendAnnouncementEvent.
Creates a SendAnnouncement2Event object that can be used to send announcement using the improved announcement api.
The announcement message. ( max length = 1000 )
OptionalcssVar: stringThe cssVar of the announcement message.
Optionalsound: stringThe sound of the announcement message.
An instance of SendAnnouncement2Event
Creates a SendChatEvent object that can be used to trigger a sendChat event. Returning event's byId is also required to be set before it can be used.
The chat message.
An instance of SendChatEvent.
Creates a SendChatIndicatorEvent object that can be used to trigger a sendChatIndicator event. Returning event's byId is also required to be set before it can be used.
The desired chat indicator status. (0: passive, 1: active.)
An instance of SendChatIndicatorEvent.
Creates a SendDirectionEvent object that can be used to set the player's current direction. room.state.directionActive must be true for this to work.
New direction value of the current player.
An instance of SendDirectionEvent
Creates a SendInputEvent object that can be used to trigger a sendInput event. Returning event's byId is also required to be set before it can be used.
The desired input value. ( 0 <= input < 32 )
An instance of SendInputEvent.
Creates a SetAvatarEvent object that can be used to trigger a setAvatar event. Returning event's byId is also required to be set before it can be used.
The desired avatar value. value.length must be <= 2.
*
*
An instance of SetAvatarEvent.
Creates a SetGamePlayValueEvent object that can be used to manually pause/resume the game clock.
Whether the game will be paused(1) or resumed(0).
An instance of SetGamePlayValueEvent.
Creates a SetGamePlayValueEvent object that can be used to manually set whether direction is active or not.
New directionActive value.
An instance of SetGamePlayValueEvent.
Creates a SetDiscPropertiesEvent object that can be used to trigger a setDiscProperties event. Returning event's byId must be set to 0 before it can be used.
Id of the disc whose properties are desired to be changed.
The desired properties to set. This will not change the omitted keys of the disc. properties has the following structure:
x: number | null: The desired x coordinate of the disc.y: number | null: The desired y coordinate of the disc.xspeed: number | null: The desired x component of the speed of the disc.yspeed: number | null: The desired y component of the speed of the disc.xgravity: number | null: The desired x component of the gravity of the disc.ygravity: number | null: The desired y component of the gravity of the disc.radius: number | null: The desired radius of the disc.bCoeff: number | null: The desired bouncing coefficient of the disc.invMass: number | null: The desired inverse mass of the disc.damping: number | null: The desired damping of the disc.color: int | null: The desired color of the disc.cMask: int | null: The desired collision mask of the disc.cGroup: int | null: The desired collision group of the disc.An instance of SetDiscPropertiesEvent.
Creates a SetGamePlayValueEvent object that can be used to manually set the current elapsed time.
New elapsed time value.
An instance of SetGamePlayValueEvent.
Creates a SetHeadlessAvatarEvent object that can be used to trigger a setHeadlessAvatar event. Returning event's byId must be set to 0 before it can be used.
Id of the player whose headless avatar is intended to be changed.
The new headless avatar value.
An instance of SetHeadlessAvatarEvent.
Creates a SetKickRateLimitEvent object that can be used to trigger a setKickRateLimit event. Returning event's byId is also required to be set before it can be used.
The desired min value of kick rate limit.
The desired rate value of kick rate limit.
The desired burst value of kick rate limit.
An instance of SetKickRateLimitEvent.
Creates a SetGamePlayValueEvent object that can be used to manually set the current max end ticks.
New max end ticks value.
An instance of SetGamePlayValueEvent.
Creates a SetGamePlayValueEvent object that can be used to manually set the current max goal ticks.
New max goal ticks value.
An instance of SetGamePlayValueEvent.
Creates a SetGamePlayValueEvent object that can be used to manually set the current max pause ticks.
New max pause ticks value.
An instance of SetGamePlayValueEvent.
Creates a SetLimitEvent object that can be used to trigger a setOvertimeLimit event.
The desired overtime limit of the game.
An instance of SetLimitEvent.
Creates a SetPlayerAdminEvent object that can be used to trigger a setPlayerAdmin event. Returning event's byId is also required to be set before it can be used.
Id of the player whose admin status is being set.
The desired admin status of the player.
An instance of SetPlayerAdminEvent.
Creates a SetPlayerCssVarEvent object that can be used to set the cssVar attribute of a player to change its appearance in the room gui.
Id of the player whose cssVar will be modified.
New cssVar value of the player.
An instance of SetPlayerCssVarEvent.
Creates a SetPlayerDirectionEvent object that can be used to manually change the direction of an individual player. room.state.directionActive must be true for this to work.
Id of the player whose energy values will be modified.
New direction value of the player.
An instance of SetPlayerDirectionEvent.
Creates a SetDiscPropertiesEvent object that can be used to trigger a setPlayerDiscProperties event. Returning event's byId must be set to 0 before it can be used.
Id of the player whose disc properties are desired to be changed.
The desired properties to set. This will not change the omitted keys of the disc. properties has the following structure:
x: number | null: The desired x coordinate of the disc.y: number | null: The desired y coordinate of the disc.xspeed: number | null: The desired x component of the speed of the disc.yspeed: number | null: The desired y component of the speed of the disc.xgravity: number | null: The desired x component of the gravity of the disc.ygravity: number | null: The desired y component of the gravity of the disc.radius: number | null: The desired radius of the disc.bCoeff: number | null: The desired bouncing coefficient of the disc.invMass: number | null: The desired inverse mass of the disc.damping: number | null: The desired damping of the disc.color: int | null: The desired color of the disc.cMask: int | null: The desired collision mask of the disc.cGroup: int | null: The desired collision group of the disc.An instance of SetDiscPropertiesEvent.
Creates a SetPlayerEnergyEvent object that can be used to manually change the energy of an individual player.
Id of the player whose energy values will be modified.
New values. Order of values is supposed to be: [energy, kEnergyGain, kEnergyDrain]. null means no change for each value.
An instance of SetPlayerEnergyEvent.
Creates an IdentityEvent object that can be used to trigger a identity event. Returning event's byId must be set to 0 before it can be used.
Id of the player whose identity data is desired to be changed.
The identity data that should be received from moo-hoo.com.
Signature of the identity data.
An instance of IdentityEvent.
Creates a SetPlayerSkinEvent object that can be used to update the current skin(textureId) of a player.
Id of the player whose skin will be modified.
New skin value of the player.
An instance of SetPlayerSkinEvent.
Creates a SetPlayerSyncEvent object that can be used to trigger a setPlayerSync event. Returning event's byId is also required to be set before it can be used.
The desired synchronization status.
An instance of SetPlayerSyncEvent.
Creates a SetPlayerTeamEvent object that can be used to trigger a setPlayerTeam event. Returning event's byId is also required to be set before it can be used.
Id of the player whose team is desired to be changed.
Id of the desired team.
An instance of SetPlayerTeamEvent.
Creates a SetRoomNameEvent object that can be used to change the name of the room.
The new room name.
An instance of SetRoomNameEvent.
Creates a SetRunDefaultGameLogicEvent object that can be used to set whether to use default game logic or not.
Whether the default game logic is active(1) or passive(0).
An instance of SetRunDefaultGameLogicEvent.
Creates a SetLimitEvent object that can be used to trigger a setScoreLimit event. Returning event's byId is also required to be set before it can be used.
The desired score limit of the game.
An instance of SetLimitEvent.
Creates a SetStadiumEvent object that can be used to trigger a setStadium event. Returning event's byId is also required to be set before it can be used.
The desired stadium value.
An instance of SetStadiumEvent.
Creates a SetTeamColorsEvent object that can be used to trigger a setTeamColors event. Returning event's byId is also required to be set before it can be used.
Id of the team whose colors are desired to be changed.
1: red.2: blue.An instance of TeamColors that defines the colors of a team.
An instance of SetTeamColorsEvent.
Creates a SetGamePlayValueEvent object that can be used to manually set the current team scores.
Id of the team whose score is desired to be changed.
New score for the team.
An instance of SetGamePlayValueEvent.
Creates a SetTeamsLockEvent object that can be used to trigger a setTeamsLock event. Returning event's byId is also required to be set before it can be used.
The desired teams lock value of the game.
An instance of SetTeamsLockEvent.
Creates a SetLimitEvent object that can be used to trigger a setTimeLimit event. Returning event's byId is also required to be set before it can be used.
The desired time limit of the game.
An instance of SetLimitEvent.
Creates a StartGameEvent object that can be used to trigger a startGame event. Returning event's byId is also required to be set before it can be used.
An instance of StartGameEvent.
Creates a StopGameEvent object that can be used to trigger a stopGame event. Returning event's byId is also required to be set before it can be used.
An instance of StopGameEvent.
Creates a UpdateCssVarEvent object that can be used to update the current contents of a css variable.
Name of the css variable..
New value of the css variable.
An instance of UpdateCssVarEvent.
Creates a StadiumUpdateObjectEvent object that can be used to update an existing stadium object.
Type of the object to be updated.
Id of the object to be updated.
An object that is supposed to contain all parameters required to update that type of object.
An instance of StadiumUpdateObjectEvent.
Creates a StadiumAddObjectEvent object that can be used to add a new stadium object.