Skip to content

Commit

Permalink
Changed Scene construction.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vassyli committed Feb 3, 2021
1 parent ace7685 commit 7426da0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 8 additions & 6 deletions src/SceneTemplates/GenderChooseScene.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ public static function getNavigationEvent(): string

public static function getScaffold()
{
$choose = Scene::create([
"template" => new SceneTemplate(GenderChooseScene::class, Module::Module),
"title" => "Which gender do you have?",
"description" => "You are looking at your flickering shadow in a cold, empty room. The shadow has no face, "
."but still, it talks. «I wonder... What's your gender?», it asks you, leaving you questioning yourself."
]);
$choose = new Scene(
title: "Which gender do you have?",
description: <<<TXT
You are looking at your flickering shadow in a cold, empty room. The shadow has no face,
but still, it talks. «I wonder... What's your gender?», it asks you, leaving you questioning yourself.
TXT,
template: new SceneTemplate(GenderChooseScene::class, Module::Module),
);

$choose->getTemplate()->setUserAssignable(false);

Expand Down
12 changes: 5 additions & 7 deletions src/SceneTemplates/GenderSetScene.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ public static function getNavigationEvent(): string

public static function getScaffold(): Scene
{
$set = Scene::create([
"template" => new SceneTemplate(GenderSetScene::class, Module::Module),
"title" => "You have chosen your gender.",
"description" => "Your shadow makes an agreeing gesture - or was it you? You don't know, you don't care. "
."And you certainly should not see this text."
]);

$set = new Scene(
title: "Utility Scene - Gender chosen",
description: "You should not see this text.",
template: new SceneTemplate(GenderSetScene::class, Module::Module),
);

$set->getTemplate()->setUserAssignable(false);

Expand Down

0 comments on commit 7426da0

Please sign in to comment.