Description:
Add separate YAML for prewritten items.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r140:7dd69fb156a6 -

@@ -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 103 "Tuvaluan", "Ugandan", "Ukrainian", "Uruguayan", "Uzbek", "Vatican citizen",
104 104 "Citizen of Vanuatu", "Venezuelan", "Vietnamese", "Vincentian",
105 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 107 "oceans": [ "Pacific", "Atlantic", "Indian", "Southern", "Arctic" ],
108 108 "seas": [ "Amundsen Gulf" , "Baffin Bay" , "Barents Sea" , "Beaufort Sea" ,
109 109
@@ -3,10 +3,6
3 3 source: Wire
4 4 variables:
5 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 6 - hed: "The Rare Subspecies of Spruce Making a Comeback"
11 7 contents: "Maeve Redding didn't think the #tree1# would ever be seen in Red
12 8 Harbor again. She was playing #subject_sport#, a personal favorite, when
@@ -212,6 +212,10
212 212 {
213 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 219 this.newsItems = this.newsItems.Select(s => s.Flatten(this.grammar)).ToList().Shuffle();
216 220
217 221 this.remainingDialog = new Queue<Node<DialogOption>>();
@@ -121,6 +121,9
121 121 <None Include="Content\news_items.yaml">
122 122 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
123 123 </None>
124 <None Include="Content\news_items_pregenerated.yaml">
125 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
126 </None>
124 127 </ItemGroup>
125 128 <ItemGroup>
126 129 <Reference Include="System" />
You need to be logged in to leave comments. Login now