Add few more interfaces (#5063)

This commit is contained in:
Zach H 2024-06-25 01:00:45 -04:00 committed by GitHub
parent e261e16d99
commit 8687163cca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 359 additions and 90 deletions

View file

@ -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);
}