/*
Copyright (C) 2005 David Green <green@couchpotato.net>
All Rights Reserved.

This file is part of Aelfengard.

Aelfengard is proprietary software. You may not redistribute it without
prior written permission from the copyright holder.
*/

package common.gameevent;

import common.ui.GameClient;

/**
 * Causes text to be sent to the scripting console window.
 * 
 * @author green
 */
public class ExecuteManualScriptResponseGameEvent extends GameEvent {

    private static final long serialVersionUID = 1L;
    
    private final int consoleId;
    private final String text;
    
    public ExecuteManualScriptResponseGameEvent(int consoleId, String text) {
        this.consoleId = consoleId;
        this.text = text;
    }
    
    public void run() {
        GameClient.printTextToScriptingConsole(consoleId, text);
    }

}