Adding EditorPython methods to Multiplayer gem for launching the editor gamemode with a server. Adding a test for networkinput with scriptcanvas to ensure the autonomous client can create input and that the server can receive and process the input via script canvas.
Signed-off-by: Gene Walters <genewalt@amazon.com>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#pragma once
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project.
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <AzCore/Component/ComponentBus.h>
|
||||
|
||||
namespace Multiplayer
|
||||
{
|
||||
/**
|
||||
* This bus can be used to send commands to the editor.
|
||||
*/
|
||||
class MultiplayerEditorLayerPythonRequests
|
||||
: public AZ::ComponentBus
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* Enters the editor game mode and launches/connects to the server launcher.
|
||||
*/
|
||||
virtual void EnterGameMode() = 0;
|
||||
|
||||
/*
|
||||
* Queries if it's in the game mode and the server has finished connecting and the default network player has spawned.
|
||||
*/
|
||||
virtual bool IsInGameMode() = 0;
|
||||
};
|
||||
using MultiplayerEditorLayerPythonRequestBus = AZ::EBus<MultiplayerEditorLayerPythonRequests>;
|
||||
}
|
||||
Reference in New Issue
Block a user