Skip to content

Commit 6f91dd7

Browse files
committed
Bumped version and uncommented JSON output
The json output is quite verbose so keeping it off for now, but users can enable it when running the examples.
1 parent fd133c2 commit 6f91dd7

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 3.9.{build}
1+
version: 3.10.{build}
22
branches:
33
only:
44
- master

src/EcsRx.Examples/ExampleApps/LoadingEntityDatabase/LoadingEntityDatabaseApplication.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ private void HandleInput()
5959
Console.WriteLine("Look in the bin folder for an entity-database.json file, alter it if you want");
6060
Console.WriteLine();
6161
Console.WriteLine($" - {defaultCollection.Count} Entities Loaded");
62-
debugPipeline.Execute(EntityCollectionManager.EntityDatabase);
62+
63+
// Uncomment this if you want to see all the entity content in console window
64+
//debugPipeline.Execute(EntityCollectionManager.EntityDatabase);
65+
6366
Console.WriteLine();
6467
Console.WriteLine(" - Press Enter To Add Another Random Entity");
6568
Console.WriteLine(" - Press Escape To Save and Quit");

src/EcsRx.Examples/ExampleApps/LoadingEntityDatabase/Modules/EntityDebugModule.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Threading.Tasks;
33
using EcsRx.Infrastructure.Dependencies;
4-
using EcsRx.Infrastructure.Extensions;
54
using EcsRx.Plugins.Persistence.Extensions;
65
using EcsRx.Plugins.Persistence.Pipelines;
76
using LazyData;
@@ -16,10 +15,11 @@ public class EntityDebugModule : IDependencyModule
1615

1716
public void Setup(IDependencyContainer container)
1817
{
19-
var a = container.Resolve<ISaveEntityDatabasePipeline>();
20-
18+
// Make a new pipeline for showing json output
2119
container.BuildPipeline(DebugPipeline, builder => builder
20+
// Fork from the 2nd step (serializer) on the existing JSON Saving Pipeline
2221
.ForkDataFrom<ISaveEntityDatabasePipeline>(2)
22+
// Then spit out the json to the console in a nice way
2323
.ThenInvoke(WriteEntityData));
2424
}
2525

src/EcsRx.Examples/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ static void Main(string[] args)
2020
//new HelloWorldExampleApplication().StartApplication();
2121
//new ComputedGroupExampleApplication().StartApplication();
2222
//new HealthExampleApplication().StartApplication();
23-
//new PersistDataApplication().StartApplication();
24-
new LoadingEntityDatabaseApplication().StartApplication();
23+
new PersistDataApplication().StartApplication();
24+
//new LoadingEntityDatabaseApplication().StartApplication();
2525
//new BatchedGroupExampleApplication().StartApplication();
2626
//new SetupSystemPriorityApplication().StartApplication();
2727

0 commit comments

Comments
 (0)