mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
WebClient: refactor protobuf method structure (#5014)
This commit is contained in:
parent
f174614496
commit
be5d42baba
53 changed files with 1014 additions and 1263 deletions
28
webclient/src/websocket/events/session/index.ts
Normal file
28
webclient/src/websocket/events/session/index.ts
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import { ProtobufEvents } from '../../services/ProtobufService';
|
||||
import { addToList } from './addToList';
|
||||
import { connectionClosed } from './connectionClosed';
|
||||
import { listRooms } from './listRooms';
|
||||
import { notifyUser } from './notifyUser';
|
||||
import { playerPropertiesChanges } from './playerPropertiesChanges';
|
||||
import { removeFromList } from './removeFromList';
|
||||
import { serverIdentification } from './serverIdentification';
|
||||
import { serverMessage } from './serverMessage';
|
||||
import { serverShutdown } from './serverShutdown';
|
||||
import { userJoined } from './userJoined';
|
||||
import { userLeft } from './userLeft';
|
||||
import { userMessage } from './userMessage';
|
||||
|
||||
export const SessionEvents: ProtobufEvents = {
|
||||
'.Event_AddToList.ext': addToList,
|
||||
'.Event_ConnectionClosed.ext': connectionClosed,
|
||||
'.Event_ListRooms.ext': listRooms,
|
||||
'.Event_NotifyUser.ext': notifyUser,
|
||||
'.Event_PlayerPropertiesChanges.ext': playerPropertiesChanges,
|
||||
'.Event_RemoveFromList.ext': removeFromList,
|
||||
'.Event_ServerIdentification.ext': serverIdentification,
|
||||
'.Event_ServerMessage.ext': serverMessage,
|
||||
'.Event_ServerShutdown.ext': serverShutdown,
|
||||
'.Event_UserJoined.ext': userJoined,
|
||||
'.Event_UserLeft.ext': userLeft,
|
||||
'.Event_UserMessage.ext': userMessage,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue