<commit_before>﻿using Alensia.Core.Input;
using UnityEngine.Assertions;

namespace Alensia.Core.Locomotion
{
    public abstract class LocomotionControl<T> : Control.Control, ILocomotionControl<T>
        where T : class, ILocomotion
    {
        public T Locomotion { get; }

        public override bool Valid => base.Valid && Locomotion.Active;

        protected LocomotionControl(T locomotion, IInputManager inputManager) : base(inputManager)
        {
            Assert.IsNotNull(locomotion, "locomotion != null");

            Locomotion = locomotion;
        }
    }
}<commit_msg>Allow overriding of locomotion implementation<commit_after>﻿using Alensia.Core.Input;

namespace Alensia.Core.Locomotion
{
    public abstract class LocomotionControl<T> : Control.Control, ILocomotionControl<T>
        where T : class, ILocomotion
    {
        public abstract T Locomotion { get; }

        public override bool Valid => base.Valid && Locomotion != null && Locomotion.Active;

        protected LocomotionControl(IInputManager inputManager) : base(inputManager)
        {
        }
    }
}
{'fraction_non_alphanumeric': 0.08751139471285324, 'fraction_numerical': 0.0, 'mean_word_length': 3.0970149253731343, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6737586', 'n_tokens_mistral': 321, 'n_tokens_neox': 306, 'n_words': 72}