Description:
Add separate YAML for prewritten items.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -0,0 +1,6 | |||||
|
|
1 | - hed: "Politicians Debate Stimulus Package" | ||
|
|
2 | |||
|
|
3 | contents: "WASHINGTON - Poliicians debate the latest stimulus package, | ||
|
|
4 | which opponents argue might help some people who don't deserve it. So it's | ||
|
|
5 | impossible to say whether it's good or bad." | ||
|
|
6 | source: "Wire" |
@@ -103,7 +103,7 | |||||
|
103 | "Tuvaluan", "Ugandan", "Ukrainian", "Uruguayan", "Uzbek", "Vatican citizen", |
|
103 | "Tuvaluan", "Ugandan", "Ukrainian", "Uruguayan", "Uzbek", "Vatican citizen", |
|
104 | "Citizen of Vanuatu", "Venezuelan", "Vietnamese", "Vincentian", |
|
104 | "Citizen of Vanuatu", "Venezuelan", "Vietnamese", "Vincentian", |
|
105 | "Wallisian", "Welsh", "Yemeni", "Zambian", "Zimbabwean" ], |
|
105 | "Wallisian", "Welsh", "Yemeni", "Zambian", "Zimbabwean" ], |
|
106 | "moral_panic_group": ["millenial", "Generation Z", "Zoomers", "Youth"], |
|
106 | "moral_panic_group": ["millennial", "Generation Z", "Zoomers", "Youth"], |
|
107 | "oceans": [ "Pacific", "Atlantic", "Indian", "Southern", "Arctic" ], |
|
107 | "oceans": [ "Pacific", "Atlantic", "Indian", "Southern", "Arctic" ], |
|
108 | "seas": [ "Amundsen Gulf" , "Baffin Bay" , "Barents Sea" , "Beaufort Sea" , |
|
108 | "seas": [ "Amundsen Gulf" , "Baffin Bay" , "Barents Sea" , "Beaufort Sea" , |
|
109 |
|
109 |
@@ -3,10 +3,6 | |||||
|
3 | source: Wire |
|
3 | source: Wire |
|
4 | variables: |
|
4 | variables: |
|
5 | test: albatross |
|
5 | test: albatross |
|
6 | - hed: "Politicians Debate Stimulus Package" |
|
||
|
7 |
|
|||
|
8 | contents: "WASHINGTON - Poliicians debate the latest stimulus package, which opponents argue might help some people who don't deserve it. So it's impossible to say whether it's good or bad." |
|
||
|
9 | source: "Wire" |
|
||
|
10 | - hed: "The Rare Subspecies of Spruce Making a Comeback" |
|
6 | - hed: "The Rare Subspecies of Spruce Making a Comeback" |
|
11 | contents: "Maeve Redding didn't think the #tree1# would ever be seen in Red |
|
7 | contents: "Maeve Redding didn't think the #tree1# would ever be seen in Red |
|
12 | Harbor again. She was playing #subject_sport#, a personal favorite, when |
|
8 | Harbor again. She was playing #subject_sport#, a personal favorite, when |
@@ -212,6 +212,10 | |||||
|
212 | { |
|
212 | { |
|
213 | this.newsItems.AddRange(NewsItem.FromYaml(sr.ReadToEnd())); |
|
213 | this.newsItems.AddRange(NewsItem.FromYaml(sr.ReadToEnd())); |
|
214 | } |
|
214 | } |
|
|
215 | using (var sr_pregenerated = new StreamReader(@"Content/news_items_pregenerated.yaml")) | ||
|
|
216 | { | ||
|
|
217 | this.newsItems.AddRange(NewsItem.FromYaml(sr_pregenerated.ReadToEnd())); | ||
|
|
218 | } | ||
|
215 | this.newsItems = this.newsItems.Select(s => s.Flatten(this.grammar)).ToList().Shuffle(); |
|
219 | this.newsItems = this.newsItems.Select(s => s.Flatten(this.grammar)).ToList().Shuffle(); |
|
216 |
|
220 | ||
|
217 | this.remainingDialog = new Queue<Node<DialogOption>>(); |
|
221 | this.remainingDialog = new Queue<Node<DialogOption>>(); |
@@ -121,6 +121,9 | |||||
|
121 | <None Include="Content\news_items.yaml"> |
|
121 | <None Include="Content\news_items.yaml"> |
|
122 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
|
122 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
|
123 | </None> |
|
123 | </None> |
|
|
124 | <None Include="Content\news_items_pregenerated.yaml"> | ||
|
|
125 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
|
|
126 | </None> | ||
|
124 | </ItemGroup> |
|
127 | </ItemGroup> |
|
125 | <ItemGroup> |
|
128 | <ItemGroup> |
|
126 | <Reference Include="System" /> |
|
129 | <Reference Include="System" /> |
You need to be logged in to leave comments.
Login now