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 | 15 | [Receives(typeof(SetDialogMessage), |
|
16 |
|
|
|
16 | typeof(DialogChoiceMessage))] | |
|
17 | 17 | [Reads(typeof(DialogComponent)) ] |
|
18 | 18 | [Writes( typeof(DialogComponent))] |
|
19 | 19 | class DialogEngine : Engine |
|
20 | 20 | { |
|
21 |
|
|
|
22 |
|
|
|
23 | ||
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|
21 | public Story Story; | |
|
22 | public Grammar Grammar; | |
|
23 | ||
|
24 | public DialogEngine(Story story, Grammar grammar) | |
|
25 | { | |
|
26 | this.Story = story; | |
|
27 | this.Grammar = grammar; | |
|
28 | } | |
|
29 | 29 | |
|
30 | 30 | public override void Update(double dt) |
|
31 | 31 | { |
@@ -34,14 +34,10 | |||
|
34 | 34 | { |
|
35 | 35 | if (dialogMessage.newOption != null) |
|
36 | 36 | { |
|
37 | // SetComponent(dialogMessage.Entity, | |
|
38 | // new DialogComponent {CurrentDialog = dialogMessage.newOption | |
|
39 | // }); | |
|
40 | 37 | } |
|
41 | 38 | else |
|
42 | 39 | { |
|
43 | 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