#include "SaveCommand.h" #include "Chat.h" #include "Game.h" SaveCommand::SaveCommand() : ChatCommand("save", "Saves the game", 0) {} bool SaveCommand::execute( Framework::RCArray& params, Entity* zActor) const { Game::INSTANCE->save(); Game::INSTANCE->zChat()->broadcastMessage( "The game was saved.", Chat::CHANNEL_INFO); return true; }