import IIncomingEvent from "../IIncomingEvent" ; import ServerMessage from "../../protocol/ServerMessage" ; import BobbaEnvironment from "../../../BobbaEnvironment" ; export default class HandleUpdateCreditsBalance implements IIncomingEvent { handle ( request ) { const credits = request . popInt ( ) ; BobbaEnvironment . getGame ( ) . userManager . updateCreditsBalance ( credits ) ; } }