-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
413 additions
and
154 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
27 changes: 27 additions & 0 deletions
27
PataNext.Simulation.Mixed/Components/GameModes/YaridaTrainingGameModeData.cs
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,27 @@ | ||
using GameHost.Simulation.Features.ShareWorldState.BaseSystems; | ||
using GameHost.Simulation.TabEcs.Interfaces; | ||
|
||
namespace PataNext.Module.Simulation.Components.GameModes | ||
{ | ||
public struct YaridaTrainingGameModeData : IComponentData | ||
{ | ||
public enum EPhase | ||
{ | ||
Waiting = 0, | ||
March = 1, | ||
|
||
// huehuehuehuheuheueheuheuehuheueheuheuehuehueheueheuheuheuhue | ||
Backward = 2 | ||
} | ||
|
||
public EPhase Phase; | ||
public float CurrUberHeroPos; | ||
public int YaridaOvertakeCount; | ||
|
||
public float LastCheckpointScore; | ||
public float LastCheckpointTime; | ||
|
||
public class Register : RegisterGameHostComponentData<YaridaTrainingGameModeData> | ||
{} | ||
} | ||
} |
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
28 changes: 28 additions & 0 deletions
28
PataNext.Simulation.Mixed/GameModes/StartYaridaTrainingGameMode.cs
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,28 @@ | ||
using GameHost.Core.Ecs; | ||
|
||
namespace PataNext.Module.Simulation.GameModes | ||
{ | ||
public class StartYaridaTrainingGameMode : AppSystem | ||
{ | ||
private YaridaTrainingGameMode trainingGameMode; | ||
private int frame; | ||
|
||
private const int targetFrame = 10; | ||
|
||
public StartYaridaTrainingGameMode(WorldCollection collection) : base(collection) | ||
{ | ||
DependencyResolver.Add(() => ref trainingGameMode); | ||
} | ||
|
||
protected override void OnUpdate() | ||
{ | ||
base.OnUpdate(); | ||
|
||
if (frame >= 0 && frame++ > targetFrame) | ||
{ | ||
frame = -1; | ||
trainingGameMode.Start(64); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.