Description:
Clean up.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -13,19 +13,19 | |||||
|
13 | { |
|
13 | { |
|
14 |
|
14 | ||
|
15 | [Receives(typeof(SetDialogMessage), |
|
15 | [Receives(typeof(SetDialogMessage), |
|
16 |
|
|
16 | typeof(DialogChoiceMessage))] |
|
17 | [Reads(typeof(DialogComponent)) ] |
|
17 | [Reads(typeof(DialogComponent)) ] |
|
18 | [Writes( typeof(DialogComponent))] |
|
18 | [Writes( typeof(DialogComponent))] |
|
19 | class DialogEngine : Engine |
|
19 | class DialogEngine : Engine |
|
20 | { |
|
20 | { |
|
21 |
|
|
21 | public Story Story; |
|
22 |
|
|
22 | public Grammar Grammar; |
|
23 |
|
23 | ||
|
24 |
|
|
24 | public DialogEngine(Story story, Grammar grammar) |
|
25 |
|
|
25 | { |
|
26 |
|
|
26 | this.Story = story; |
|
27 |
|
|
27 | this.Grammar = grammar; |
|
28 |
|
|
28 | } |
|
29 |
|
29 | ||
|
30 | public override void Update(double dt) |
|
30 | public override void Update(double dt) |
|
31 | { |
|
31 | { |
@@ -34,14 +34,10 | |||||
|
34 | { |
|
34 | { |
|
35 | if (dialogMessage.newOption != null) |
|
35 | if (dialogMessage.newOption != null) |
|
36 | { |
|
36 | { |
|
37 | // SetComponent(dialogMessage.Entity, |
|
||
|
38 | // new DialogComponent {CurrentDialog = dialogMessage.newOption |
|
||
|
39 | // }); |
|
||
|
40 | } |
|
37 | } |
|
41 | else |
|
38 | else |
|
42 | { |
|
39 | { |
|
43 | Destroy(dialogMessage.Entity); |
|
40 | Destroy(dialogMessage.Entity); |
|
44 |
|
|||
|
45 | } |
|
41 | } |
|
46 | } |
|
42 | } |
|
47 |
|
43 | ||
@@ -112,10 +108,6 | |||||
|
112 |
|
108 | ||
|
113 | } |
|
109 | } |
|
114 | } |
|
110 | } |
|
115 |
|
|||
|
116 |
|
|||
|
117 |
|
|||
|
118 |
|
|||
|
119 | } |
|
111 | } |
|
120 | } |
|
112 | } |
|
121 | } |
|
113 | } |
You need to be logged in to leave comments.
Login now