Description:
Tidy code up a little.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -12,8 +12,10 | |||||
|
12 | public struct DialogComponent : IComponent/*, IHasEntity*/ { |
|
12 | public struct DialogComponent : IComponent/*, IHasEntity*/ { |
|
13 | public string Knot; |
|
13 | public string Knot; |
|
14 | public string CurrentDialog; |
|
14 | public string CurrentDialog; |
|
15 | // public Entity Entity {get; set;} |
|
||
|
16 | public string CurrentSpeaker; |
|
15 | public string CurrentSpeaker; |
|
17 | public List<string> Options; |
|
16 | public List<string> Options; |
|
|
17 | public bool Hydrated { get { | ||
|
|
18 | return (this.CurrentDialog != null) | ||
|
|
19 | && (this.CurrentSpeaker != null); }} | ||
|
18 | } |
|
20 | } |
|
19 | } |
|
21 | } |
@@ -150,7 +150,7 | |||||
|
150 | //Don't try to use entity we just destroyed: |
|
150 | //Don't try to use entity we just destroyed: |
|
151 | && (entity.ID != choiceMessage.Entity.ID) |
|
151 | && (entity.ID != choiceMessage.Entity.ID) |
|
152 |
|
152 | ||
|
153 |
&& (GetComponent<DialogComponent>(entity). |
|
153 | && (!GetComponent<DialogComponent>(entity).Hydrated)) |
|
154 | { |
|
154 | { |
|
155 | lowestID = entity.ID; |
|
155 | lowestID = entity.ID; |
|
156 | lowestEntity = entity; |
|
156 | lowestEntity = entity; |
You need to be logged in to leave comments.
Login now