Description:
Add initial version.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r383:7a38966b5d95 -

@@ -0,0 +1,40
1
2 VAR GovernorOpinion = 0
3
4 -> IntroGovernor
5
6
7 === Once ===
8
9 Once upon a time...
10
11 * There were two choices.
12 * There were four lines of content.
13
14 - They lived happily ever after.
15 -> END
16
17
18 === IntroGovernor ===
19
20 Governor: Welcome to your new park, director! You can use the mouse or arrow keys to move around, and the plus and minus keys to zoom in and out. B opens the budget and F lets you adjust Forest Policy.
21
22 * [Okay]
23
24 Governor: Make sure that you keep visitors happy and the budget in the black! You're currently getting an annual grant out of my budget—it'd sure be nice if you park were self-sufficient so we could drop that expense!
25
26 * * [And I need to keep the forest healthy, too, right?]
27 ~ GovernorOpinion = GovernorOpinion - 1
28
29
30 Governor: Ummm, yeah
31 * * * \...
32 -> END
33 * * [Sounds good!]
34
35 Governor: I'll check in soon.
36
37
38 -> END
39
40
@@ -0,0 +1,1
1 {"inkVersion":20,"root":[[{"->":"IntroGovernor"},["done",{"#f":5,"#n":"g-0"}],null],"done",{"Once":[["^Once upon a time...","\n",["ev",{"^->":"Once.0.2.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^There were two choices.",{"->":"$r","var":true},null]}],["ev",{"^->":"Once.0.3.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-1","flg":18},{"s":["^There were four lines of content.",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"Once.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.2.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"c-1":["ev",{"^->":"Once.0.c-1.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.3.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"g-0":["^They lived happily ever after.","\n","end",{"#f":5}]}],{"#f":1}],"IntroGovernor":[["^Governor: Welcome to your new park, director! You can use the mouse or arrow keys to move around, and the plus and minus keys to zoom in and out. B opens the budget and F lets you adjust Forest Policy.","\n","ev","str","^Okay","/str","/ev",{"*":".^.c-0","flg":20},{"c-0":["\n","^Governor: Make sure that you keep visitors happy and the budget in the black! You're currently getting an annual grant out of my budget—it'd sure be nice if you park were self-sufficient so we could drop that expense!","\n",["ev","str","^And I need to keep the forest healthy, too, right?","/str","/ev",{"*":".^.c-0","flg":20},"ev","str","^Sounds good!","/str","/ev",{"*":".^.c-1","flg":20},{"c-0":["^ ","\n","ev",{"VAR?":"GovernorOpinion"},1,"-","/ev",{"VAR=":"GovernorOpinion","re":true},"^Governor: Ummm, yeah","\n",[["ev",{"^->":"IntroGovernor.0.c-0.3.c-0.10.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^...",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"IntroGovernor.0.c-0.3.c-0.10.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n","end",{"#f":5}]}],{"#f":5}],"c-1":["\n","^Governor: I'll check in soon.","\n","end",{"#f":5}]}],{"#f":5}]}],{"#f":1}],"global decl":["ev",0,{"VAR=":"GovernorOpinion"},"/ev","end",null],"#f":1}],"listDefs":{}} No newline at end of file
@@ -12,8 +12,8
12 12 using System.Collections.Generic;
13 13 using System.Linq;
14 14 using SpriteFontPlus;
15
15 16 using isometricparkfna;
16
17 17 using static isometricparkfna.CellMap;
18 18 using isometricparkfna.Utils;
19 19 using isometricparkfna.UI;
@@ -28,6 +28,7
28 28 using ImGuiNET;
29 29 using TraceryNet;
30 30 using Encompass;
31 using Ink.Runtime;
31 32
32 33 //Let's let core builds be deterministic
33 34 #if NETCOREAPP
@@ -110,6 +111,8
110 111
111 112 private ImGuiWindowBridgeEngine imGuiWindowBridgeEngine;
112 113
114
115
113 116 private static void Main(string[] args)
114 117 {
115 118 #if NETCOREAPP
@@ -239,6 +242,10
239 242 //Has to happen after Grammar initialization.
240 243 NewGameWindow.Initialize(this.grammar);
241 244
245 var _inkStory = new Story(File.ReadAllText(@"Content/dialog.json"));
246
247 Logging.Debug(_inkStory.ContinueMaximally());
248
242 249 WorldBuilder.AddEngine(new InputEngine(Menu.MENU_BAR_HEIGHT, this.camera, gdm));
243 250 WorldBuilder.AddEngine(new UIEngine());
244 251
@@ -46,6 +46,7
46 46 <!-- <Import Project="..\build\CopyFNALibs.targets"/> -->
47 47 <ItemGroup>
48 48 <PackageReference Include="ImGui.NET" Version="1.78.0" />
49 <PackageReference Include="Ink.Engine.Runtime-Unofficial" Version="1.0.0-nightly-21061600" />
49 50 <PackageReference Include="Tracery.Net" Version="1.0.0" />
50 51 <PackageReference Include="YamlDotNet" Version="11.0.1" />
51 52 <PackageReference Include="JM.LinqFaster" Version="1.1.2" />
@@ -148,6 +148,9
148 148 <None Include="Content\grammar.json">
149 149 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
150 150 </None>
151 <None Include="Content\dialog.json">
152 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
153 </None>
151 154 <None Include="Content\news_items.yaml">
152 155 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
153 156 </None>
@@ -228,6 +231,9
228 231 <ItemGroup>
229 232 <Folder Include="Utils\" />
230 233 </ItemGroup>
234 <ItemGroup>
235 <PackageReference Include="Ink.Engine.Runtime-Unofficial" Version="1.0.0-nightly-21061600" />
236 </ItemGroup>
231 237 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
232 238 <Import Project="..\packages\ImGui.NET.1.78.0\build\net40\ImGui.NET.targets" Condition="Exists('..\packages\ImGui.NET.1.78.0\build\net40\ImGui.NET.targets')" />
233 239 </Project>
You need to be logged in to leave comments. Login now