constants operationType - wxyz-abcd/node-haxball GitHub Wiki

OperationType

This object binds event (operation) names to numbers that are obtained during Haxball's event mechanism, to let us understand what kind of message is received from the client. By nature, these include only those events that can be sent by a client and received by a host. Here is its current definition:

const OperationType = {
  SetAvatar: 0,
  SetHeadlessAvatar: 1,
  SendChat: 2,
  SendChatIndicator: 3,
  SendAnnouncement: 4,
  SendInput: 5,
  SetStadium: 6,
  StartGame: 7,
  StopGame: 8,
  PauseResumeGame: 9,
  SetScoreLimit: 10,
  SetTimeLimit: 11,
  AutoTeams: 12,
  SetTeamsLock: 13,
  SetPlayerTeam: 14,
  SetKickRateLimit: 15,
  SetTeamColors: 16,
  SetPlayerAdmin: 17,
  KickBanPlayer: 18,
  SetPlayerSync: 19,
  Ping: 20,
  SetDiscProperties: 21,
  JoinRoom: 22,
  ReorderPlayers: 23,
  CheckConsistency: 24,
  CustomEvent: 25
};