-
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
31 changed files
with
594 additions
and
54 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
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
Binary file not shown.
Binary file not shown.
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,28 @@ | ||
using System; | ||
using DefaultEcs; | ||
using GameHost.Core.Ecs; | ||
using GameHost.Core.Modules; | ||
using GameHost.Injection; | ||
using GameHost.Simulation.Application; | ||
using GameHost.Threading; | ||
using GameHost.Worlds; | ||
|
||
[assembly: RegisterAvailableModule("Client Abilities", "guerro", typeof(PataNext.Simulation.Client.Abilities.Module))] | ||
|
||
namespace PataNext.Simulation.Client.Abilities | ||
{ | ||
public class Module : GameHostModule | ||
{ | ||
public Module(Entity source, Context ctxParent, GameHostModuleDescription description) : base(source, ctxParent, description) | ||
{ | ||
var global = new ContextBindingStrategy(ctxParent, true).Resolve<GlobalWorld>(); | ||
foreach (ref readonly var listener in global.World.Get<IListener>()) | ||
{ | ||
if (listener is SimulationApplication simulationApplication) | ||
{ | ||
simulationApplication.Data.Collection.GetOrCreate(typeof(TaterazayEnergyFieldClientProvider)); | ||
} | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
PataNext.Simulation.Client.Abilities/TaterazayEnergyFieldClientProvider.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,13 @@ | ||
using GameHost.Core.Ecs; | ||
using PataNext.Game.Abilities; | ||
using PataNext.Simulation.Mixed.Abilities.CTate; | ||
|
||
namespace PataNext.Simulation.Client.Abilities | ||
{ | ||
public class TaterazayEnergyFieldClientProvider : BaseClientAbilityProvider<TaterazayEnergyFieldAbilityProvider> | ||
{ | ||
public TaterazayEnergyFieldClientProvider(WorldCollection collection) : base(collection) | ||
{ | ||
} | ||
} | ||
} |
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,31 @@ | ||
{ | ||
"SliderSensibility": 0.43, | ||
"PataKeys": [ | ||
"keyboard/numpad4" | ||
], | ||
"PonKeys": [ | ||
"keyboard/numpad6" | ||
], | ||
"DonKeys": [ | ||
"keyboard/numpad2" | ||
], | ||
"ChakaKeys": [ | ||
"keyboard/numpad8" | ||
], | ||
"Ability0Keys": [ | ||
"keyboard/a", | ||
"keyboard/d" | ||
], | ||
"Ability1Keys": [ | ||
"keyboard/w" | ||
], | ||
"Ability2Keys": [ | ||
"keyboard/s" | ||
], | ||
"PanningNegativeKeys": [ | ||
"keyboard/q" | ||
], | ||
"PanningPositiveKeys": [ | ||
"keyboard/e" | ||
] | ||
} |
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
Oops, something went wrong.