-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(e2e): integration test example
- Loading branch information
Showing
15 changed files
with
202 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using Scellecs.Morpeh; | ||
using Scellecs.Morpeh.Extended; | ||
using Systems.Debugging; | ||
using Systems.Debugging.Render; | ||
|
||
namespace GameDesktop; | ||
|
||
public class DebugFeature : Feature | ||
{ | ||
public DebugFeature(World world, | ||
EntitiesList entitiesList, | ||
FrameCounter frameCounter, | ||
RenderFramesPerSec renderFramesPerSec, PivotRenderSystem pivotRenderSystem) : base(world) | ||
{ | ||
Add(entitiesList); | ||
Add(frameCounter); | ||
Add(renderFramesPerSec); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
// using Systems; | ||
// | ||
// namespace Features; | ||
// | ||
// public sealed class MovementFeature : Entitas.Extended.Feature | ||
// { | ||
// public MovementFeature( | ||
// CollisionSystem collisionSystem, | ||
// MovementSystem movementSystem, | ||
// AnimatedMovementSystem animatedMovementSystem) | ||
// { | ||
// Add(collisionSystem); | ||
// Add(movementSystem); | ||
// Add(animatedMovementSystem); | ||
// } | ||
// } | ||
using Scellecs.Morpeh; | ||
using Scellecs.Morpeh.Extended; | ||
using Systems; | ||
|
||
namespace Features; | ||
|
||
public class MovementFeature : Feature | ||
{ | ||
public MovementFeature(World world, | ||
InputSystem inputSystem, | ||
MovementSystem movementSystem) : base(world) | ||
{ | ||
Add(inputSystem); | ||
Add(movementSystem); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Scellecs.Morpeh; | ||
using Scellecs.Morpeh.Extended; | ||
using Systems.Render; | ||
|
||
namespace Features; | ||
|
||
public class PreRenderFeature : Feature | ||
{ | ||
public PreRenderFeature(World world, | ||
CharacterMovementAnimationSystem characterMovementAnimationSystem, | ||
CameraFollowingSystem cameraFollowingSystem) : base(world) | ||
{ | ||
Add(characterMovementAnimationSystem); | ||
Add(cameraFollowingSystem); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Scellecs.Morpeh; | ||
using Scellecs.Morpeh.Extended; | ||
using Systems.Render; | ||
|
||
namespace Features; | ||
|
||
public class RenderFeature : Feature | ||
{ | ||
public RenderFeature(World world, | ||
RenderCharacterMovementAnimationSystem renderCharacterMovementAnimationSystem) : base(world) | ||
{ | ||
Add(renderCharacterMovementAnimationSystem); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,41 @@ | ||
// using Features.Debugging; | ||
// | ||
// namespace Features; | ||
// | ||
// public sealed class RootFeature : Entitas.Extended.Feature | ||
// { | ||
// public RootFeature(WorldInitializeFeature worldInitializeFeature, | ||
// InputFeature inputFeature, | ||
// MovementFeature movementFeature, | ||
// CameraFeature cameraFeature) | ||
// { | ||
// Add(worldInitializeFeature); | ||
// Add(inputFeature); | ||
// Add(movementFeature); | ||
// Add(cameraFeature); | ||
// } | ||
// | ||
// public RootFeature(DebugRootFeature debugRootFeature, | ||
// WorldInitializeFeature worldInitializeFeature, | ||
// InputFeature inputFeature, | ||
// MovementFeature movementFeature, | ||
// CameraFeature cameraFeature) : this(worldInitializeFeature, inputFeature, movementFeature, cameraFeature) | ||
// { | ||
// Add(debugRootFeature); | ||
// } | ||
// } | ||
using GameDesktop; | ||
using Scellecs.Morpeh; | ||
using Scellecs.Morpeh.Extended; | ||
|
||
namespace Features; | ||
|
||
public class RootFeature : Feature | ||
{ | ||
public RootFeature(World world, | ||
WorldInitializer worldInitializer, | ||
MovementFeature movementFeature | ||
) : base(world) | ||
{ | ||
Add(worldInitializer); | ||
Add(movementFeature); | ||
} | ||
|
||
public RootFeature(World world, | ||
WorldInitializer worldInitializer, | ||
MovementFeature movementFeature, | ||
PreRenderFeature preRenderFeature, | ||
RenderFeature renderFeature | ||
) : this(world, worldInitializer, movementFeature) | ||
{ | ||
Add(preRenderFeature); | ||
Add(renderFeature); | ||
} | ||
|
||
#if DEBUG | ||
public RootFeature(World world, | ||
WorldInitializer worldInitializer, | ||
MovementFeature movementFeature, | ||
PreRenderFeature preRenderFeature, | ||
RenderFeature renderFeature, | ||
DebugFeature debugFeature | ||
) : this(world, worldInitializer, movementFeature, preRenderFeature, renderFeature) | ||
{ | ||
Add(debugFeature); | ||
} | ||
#endif | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.