@runox-game/game-engine
Version:
RunoX game engine
22 lines (21 loc) • 674 B
TypeScript
import { GameCommand } from './game.command';
import { IPlayer } from '../models/player.model';
import { IGameState } from '../models/game-state.model';
import { CommandValidation } from './command-result';
/**
* Players to add into the game
*/
export declare class AddPlayersCommand extends GameCommand {
/**
* Players to add into the game
*/
private readonly players;
/**
* Class that allows adding players to the game state
*
* @param players - players to add into the game
*/
constructor(players: IPlayer[]);
execute(state: IGameState): void;
validate(state: IGameState): CommandValidation;
}