mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
Add few more interfaces (#5063)
This commit is contained in:
parent
e261e16d99
commit
8687163cca
34 changed files with 359 additions and 90 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import protobuf from 'protobufjs';
|
||||
|
||||
import { RoomEvents, SessionEvents } from '../events';
|
||||
import { CommonEvents, RoomEvents, SessionEvents } from '../events';
|
||||
import { SessionPersistence } from '../persistence';
|
||||
import { WebClient } from '../WebClient';
|
||||
import { SessionCommands } from 'websocket';
|
||||
|
|
@ -95,7 +95,10 @@ export class ProtobufService {
|
|||
this.processSessionEvent(msg.sessionEvent, msg);
|
||||
break;
|
||||
case this.controller.ServerMessage.MessageType.GAME_EVENT_CONTAINER:
|
||||
// @TODO
|
||||
console.log(msg);
|
||||
break;
|
||||
default:
|
||||
console.log(msg);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -113,6 +116,10 @@ export class ProtobufService {
|
|||
}
|
||||
}
|
||||
|
||||
private processCommonEvent(response: any, raw: any) {
|
||||
this.processEvent(response, CommonEvents, raw);
|
||||
}
|
||||
|
||||
private processRoomEvent(response: any, raw: any) {
|
||||
this.processEvent(response, RoomEvents, raw);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue