mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 13:16:02 +00:00
Simplified actor modules
This commit is contained in:
parent
28671c098b
commit
a7f4f4eb28
8 changed files with 57 additions and 34 deletions
|
|
@ -3,7 +3,7 @@ using System.Linq;
|
|||
using Cirno.Scripts.Components.Actors;
|
||||
using Godot;
|
||||
|
||||
public abstract partial class MovementHandler : Node2D
|
||||
public abstract partial class MovementHandler : ActorModule
|
||||
{
|
||||
protected Actor _parent;
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ public abstract partial class MovementHandler : Node2D
|
|||
|
||||
protected readonly List<InputProvider> _inputProviders = new();
|
||||
|
||||
public virtual void Init(Actor parent)
|
||||
public override void Init(Actor parent)
|
||||
{
|
||||
_parent = parent;
|
||||
|
||||
|
|
@ -41,6 +41,4 @@ public abstract partial class MovementHandler : Node2D
|
|||
return _inputProviders.Aggregate(false, (current, inputProvider) => current && inputProvider.GetStrafing());
|
||||
}
|
||||
|
||||
public abstract void Move(double delta);
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue