playship_ludo_pseudo_quick
Version:
Server side neutrino plugin code for ludo game
20 lines (19 loc) • 763 B
JavaScript
const lifecycle = require('./gameplay/lifecycle');
const gameLogic = require('./gameplay/logic');
const gameLoop = require('./gameplay/gameloop');
const board = require('./gameplay/board');
module.exports = {
startGame: lifecycle.startGame,
onRestoreFromSavepoint: lifecycle.onRestoreFromSavepoint,
resumeGame: lifecycle.onServerRestart,
step: gameLoop,
punishTimeHackClient: lifecycle.kickTimeHackers,
gameAction: gameLogic.gameAction,
revPosKey: board.revPosKeyFun,
mapToLoad : lifecycle.mapToLoad,
onForfeitForPlayer: lifecycle.onForfeitForPlayer,
gameStarted : lifecycle.gameStarted,
playerJoined: lifecycle.playerConnected,
handleGameOptions : lifecycle.handleGameOptions,
getAbsoluteGameResult : gameLogic.getAbsoluteGameResult
};