Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0a7f301536 | |||
| fc8d7be2ef |
@@ -56,7 +56,7 @@ class SceneConfigResetCommand extends SceneBaseCommand
|
||||
]);
|
||||
|
||||
$newContext = $this->game->getEventManager()->publish(
|
||||
event: "h/lotgd/core/cli/character-config-reset/{$sceneTemplate}",
|
||||
event: "h/lotgd/core/cli/scene-config-reset/{$sceneTemplate}",
|
||||
contextData: $context
|
||||
);
|
||||
if ($newContext->get("return") != Command::SUCCESS) {
|
||||
|
||||
@@ -60,7 +60,7 @@ class SceneConfigSetCommand extends SceneBaseCommand
|
||||
"reason" => "Setting does not exist.",
|
||||
]);
|
||||
$newContext = $this->game->getEventManager()->publish(
|
||||
event: "h/lotgd/core/cli/character-config-set/{$sceneTemplate}",
|
||||
event: "h/lotgd/core/cli/scene-config-set/{$sceneTemplate}",
|
||||
contextData: $context
|
||||
);
|
||||
if ($newContext->get("return") != Command::SUCCESS) {
|
||||
|
||||
@@ -41,7 +41,7 @@ class SceneConfigResetCommandTest extends CoreModelTestCase
|
||||
$eventManager->expects($this->once())
|
||||
->method('publish')
|
||||
->with(
|
||||
$this->equalTo("h/lotgd/core/cli/character-config-reset/{$path}"),
|
||||
$this->equalTo("h/lotgd/core/cli/scene-config-reset/{$path}"),
|
||||
$this->callback(function (EventContextData $eventContextData) use ($scene, $sceneTitle, $setting) {
|
||||
$pass = 1;
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ class SceneConfigSetCommandTest extends CoreModelTestCase
|
||||
$eventManager->expects($this->once())
|
||||
->method('publish')
|
||||
->with(
|
||||
$this->equalTo("h/lotgd/core/cli/character-config-set/{$path}"),
|
||||
$this->equalTo("h/lotgd/core/cli/scene-config-set/{$path}"),
|
||||
$this->callback(function (EventContextData $eventContextData) use ($character, $displayName, $setting, $value) {
|
||||
$pass = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user