File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed
ExampleApps/LoadingEntityDatabase Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 1
- version : 3.9 .{build}
1
+ version : 3.10 .{build}
2
2
branches :
3
3
only :
4
4
- master
Original file line number Diff line number Diff line change @@ -59,7 +59,10 @@ private void HandleInput()
59
59
Console . WriteLine ( "Look in the bin folder for an entity-database.json file, alter it if you want" ) ;
60
60
Console . WriteLine ( ) ;
61
61
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
+
63
66
Console . WriteLine ( ) ;
64
67
Console . WriteLine ( " - Press Enter To Add Another Random Entity" ) ;
65
68
Console . WriteLine ( " - Press Escape To Save and Quit" ) ;
Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Threading . Tasks ;
3
3
using EcsRx . Infrastructure . Dependencies ;
4
- using EcsRx . Infrastructure . Extensions ;
5
4
using EcsRx . Plugins . Persistence . Extensions ;
6
5
using EcsRx . Plugins . Persistence . Pipelines ;
7
6
using LazyData ;
@@ -16,10 +15,11 @@ public class EntityDebugModule : IDependencyModule
16
15
17
16
public void Setup ( IDependencyContainer container )
18
17
{
19
- var a = container . Resolve < ISaveEntityDatabasePipeline > ( ) ;
20
-
18
+ // Make a new pipeline for showing json output
21
19
container . BuildPipeline ( DebugPipeline , builder => builder
20
+ // Fork from the 2nd step (serializer) on the existing JSON Saving Pipeline
22
21
. ForkDataFrom < ISaveEntityDatabasePipeline > ( 2 )
22
+ // Then spit out the json to the console in a nice way
23
23
. ThenInvoke ( WriteEntityData ) ) ;
24
24
}
25
25
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ static void Main(string[] args)
20
20
//new HelloWorldExampleApplication().StartApplication();
21
21
//new ComputedGroupExampleApplication().StartApplication();
22
22
//new HealthExampleApplication().StartApplication();
23
- // new PersistDataApplication().StartApplication();
24
- new LoadingEntityDatabaseApplication ( ) . StartApplication ( ) ;
23
+ new PersistDataApplication ( ) . StartApplication ( ) ;
24
+ // new LoadingEntityDatabaseApplication().StartApplication();
25
25
//new BatchedGroupExampleApplication().StartApplication();
26
26
//new SetupSystemPriorityApplication().StartApplication();
27
27
You can’t perform that action at this time.
0 commit comments