# HG changeset patch # User Alys Brooks # Date 2021-08-14 08:29:43 # Node ID c977835dde9147376c4f46e28b1553175b555068 # Parent a6f18c4a90536ce45839ac83700ebee9ab7e8b6c Clean up. diff --git a/isometric-park-fna/Engines/DialogEngine.cs b/isometric-park-fna/Engines/DialogEngine.cs --- a/isometric-park-fna/Engines/DialogEngine.cs +++ b/isometric-park-fna/Engines/DialogEngine.cs @@ -13,19 +13,19 @@ { [Receives(typeof(SetDialogMessage), - typeof(DialogChoiceMessage))] + typeof(DialogChoiceMessage))] [Reads(typeof(DialogComponent)) ] [Writes( typeof(DialogComponent))] class DialogEngine : Engine { - public Story Story; - public Grammar Grammar; - - public DialogEngine(Story story, Grammar grammar) - { - this.Story = story; - this.Grammar = grammar; - } + public Story Story; + public Grammar Grammar; + + public DialogEngine(Story story, Grammar grammar) + { + this.Story = story; + this.Grammar = grammar; + } public override void Update(double dt) { @@ -34,14 +34,10 @@ { if (dialogMessage.newOption != null) { - // SetComponent(dialogMessage.Entity, - // new DialogComponent {CurrentDialog = dialogMessage.newOption - // }); } else { Destroy(dialogMessage.Entity); - } } @@ -112,10 +108,6 @@ } } - - - - } } }