From 40c3955de5b3023c63b4aea91b995c6ecc4c639e Mon Sep 17 00:00:00 2001 From: kremsy Date: Thu, 23 Mar 2017 20:52:23 +0100 Subject: [PATCH] adjusted folder structure (added some events which arent finished in every folder, the only finished is the one in XmlRpc) --- core/Callbacks/LibXmlRpcCallbacks.php | 2 +- .../ManiaPlanet/StartServerStructure.php | 15 +++++++++++++ .../ShootMania/DefaultEventStructure.php | 22 +++++++++++++++++++ .../Trackmania/DefaultEventStructure.php | 18 ++++++++++----- .../CallbacksListStructure.php | 2 +- 5 files changed, 51 insertions(+), 8 deletions(-) create mode 100644 core/Callbacks/Structures/ManiaPlanet/StartServerStructure.php create mode 100644 core/Callbacks/Structures/ShootMania/DefaultEventStructure.php rename core/Callbacks/Structures/{ManiaPlanet => XmlRpc}/CallbacksListStructure.php (94%) diff --git a/core/Callbacks/LibXmlRpcCallbacks.php b/core/Callbacks/LibXmlRpcCallbacks.php index 8bf4c68c..d9bd2ee1 100644 --- a/core/Callbacks/LibXmlRpcCallbacks.php +++ b/core/Callbacks/LibXmlRpcCallbacks.php @@ -4,7 +4,7 @@ namespace ManiaControl\Callbacks; use ManiaControl\Callbacks\Structures\ArmorEmptyStructure; use ManiaControl\Callbacks\Structures\CaptureStructure; -use ManiaControl\Callbacks\Structures\ManiaPlanet\CallbacksListStructure; +use ManiaControl\Callbacks\Structures\XmlRpc\CallbacksListStructure; use ManiaControl\Callbacks\Structures\NearMissStructure; use ManiaControl\Callbacks\Structures\PlayerHitStructure; use ManiaControl\ManiaControl; diff --git a/core/Callbacks/Structures/ManiaPlanet/StartServerStructure.php b/core/Callbacks/Structures/ManiaPlanet/StartServerStructure.php new file mode 100644 index 00000000..7c07226f --- /dev/null +++ b/core/Callbacks/Structures/ManiaPlanet/StartServerStructure.php @@ -0,0 +1,15 @@ + + * @copyright 2014-2017 ManiaControl Team + * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 + */ +class DefaultEventStructure extends BaseStructure { + public function __construct(ManiaControl $maniaControl, $data) { + parent::setManiaControl($maniaControl); + parent::setJson($data); + + } +} \ No newline at end of file diff --git a/core/Callbacks/Structures/Trackmania/DefaultEventStructure.php b/core/Callbacks/Structures/Trackmania/DefaultEventStructure.php index 9eba374b..8e66ad20 100644 --- a/core/Callbacks/Structures/Trackmania/DefaultEventStructure.php +++ b/core/Callbacks/Structures/Trackmania/DefaultEventStructure.php @@ -1,16 +1,22 @@ + * @copyright 2014-2017 ManiaControl Team + * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 + */ class DefaultEventStructure extends BaseStructure { + public function __construct(ManiaControl $maniaControl, $data) { + parent::setManiaControl($maniaControl); + parent::setJson($data); + } } \ No newline at end of file diff --git a/core/Callbacks/Structures/ManiaPlanet/CallbacksListStructure.php b/core/Callbacks/Structures/XmlRpc/CallbacksListStructure.php similarity index 94% rename from core/Callbacks/Structures/ManiaPlanet/CallbacksListStructure.php rename to core/Callbacks/Structures/XmlRpc/CallbacksListStructure.php index 586d9f2a..018b0b91 100644 --- a/core/Callbacks/Structures/ManiaPlanet/CallbacksListStructure.php +++ b/core/Callbacks/Structures/XmlRpc/CallbacksListStructure.php @@ -1,6 +1,6 @@