Some more Documentation

This commit is contained in:
Syntriax 2022-11-20 13:32:06 +03:00
parent bfd8049f17
commit e2c1f186af
1 changed files with 15 additions and 0 deletions

View File

@ -29,12 +29,20 @@ namespace Syntriax.Modules.Movement
}
public IToggleState ToggleState { get; protected set; } = null;
/// <inheritdoc/>
public abstract void ApplyMovement();
public abstract void Move(float x = 0, float y = 0, float z = 0);
/// <summary>
/// Called when this <see cref="IMovement"/> is activated.
/// </summary>
protected abstract void OnActivated();
/// <summary>
/// Called when this <see cref="IMovement"/> is deactivated.
/// </summary>
protected abstract void OnDeactivated();
protected virtual void Start()
@ -46,6 +54,9 @@ namespace Syntriax.Modules.Movement
movementController.OnMovementDeactivated += OnDeactivated;
}
/// <summary>
/// Called when the <see cref="IMovementController"/> activates one of it's <see cref="IMovement"/>s.
/// </summary>
private void OnActivated(IMovement movement)
{
if ((object)movement != this)
@ -53,6 +64,10 @@ namespace Syntriax.Modules.Movement
OnActivated();
}
/// <summary>
/// Called when the <see cref="IMovementController"/> activates one of it's <see cref="IMovement"/>s.
/// </summary>
private void OnDeactivated(IMovement movement)
{
if ((object)movement != this)