Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpCommandQueue.cpp
Show All 13 Lines | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#include "precompiled.h" | #include "precompiled.h" | ||||
#include "ICmpCommandQueue.h" | #include "ICmpCommandQueue.h" | ||||
#include "scriptinterface/FunctionWrapper.h" | |||||
#include "scriptinterface/ScriptInterface.h" | |||||
#include "simulation2/system/InterfaceScripted.h" | #include "simulation2/system/InterfaceScripted.h" | ||||
BEGIN_INTERFACE_WRAPPER(CommandQueue) | BEGIN_INTERFACE_WRAPPER(CommandQueue) | ||||
DEFINE_INTERFACE_METHOD_2("PushLocalCommand", void, ICmpCommandQueue, PushLocalCommand, player_id_t, JS::HandleValue) | DEFINE_INTERFACE_METHOD("PushLocalCommand", ICmpCommandQueue, PushLocalCommand) | ||||
DEFINE_INTERFACE_METHOD_1("PostNetworkCommand", void, ICmpCommandQueue, PostNetworkCommand, JS::HandleValue) | DEFINE_INTERFACE_METHOD("PostNetworkCommand", ICmpCommandQueue, PostNetworkCommand) | ||||
// Excluded: FlushTurn (doesn't make sense for scripts to call it) | // Excluded: FlushTurn (doesn't make sense for scripts to call it) | ||||
END_INTERFACE_WRAPPER(CommandQueue) | END_INTERFACE_WRAPPER(CommandQueue) |
Wildfire Games · Phabricator