<commit_before>﻿// Copyright (c) 2007-2017 ppy Pty Ltd <<EMAIL>>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE

using osu.Game.Modes.Objects.Drawables;
using osu.Game.Modes.Taiko.Judgements;

namespace osu.Game.Modes.Taiko.Objects.Drawable
{
    public class DrawableTaikoHitObject : DrawableHitObject<TaikoHitObject, TaikoJudgementInfo>
    {
        public DrawableTaikoHitObject(TaikoHitObject hitObject)
            : base(hitObject)
        {
            LifetimeStart = HitObject.StartTime - HitObject.PreEmpt;
            LifetimeEnd = HitObject.StartTime + HitObject.PreEmpt;
        }

        protected override TaikoJudgementInfo CreateJudgementInfo() => new TaikoJudgementInfo();

        protected override void UpdateState(ArmedState state)
        {
        }

        protected void UpdateScrollPosition(double time)
        {
            MoveToX((float)((HitObject.StartTime - time) / HitObject.PreEmpt));
        }

        protected override void Update()
        {
            UpdateScrollPosition(Time.Current);
        }
    }
}<commit_msg>Add AcentColour and xmldoc.<commit_after>﻿// Copyright (c) 2007-2017 ppy Pty Ltd <<EMAIL>>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE

using OpenTK.Graphics;
using osu.Game.Modes.Objects.Drawables;
using osu.Game.Modes.Taiko.Judgements;

namespace osu.Game.Modes.Taiko.Objects.Drawable
{
    public class DrawableTaikoHitObject : DrawableHitObject<TaikoHitObject, TaikoJudgementInfo>
    {
        /// <summary>
        /// The colour used for various elements of this DrawableHitObject.
        /// </summary>
        public virtual Color4 AccentColour { get; }

        public DrawableTaikoHitObject(TaikoHitObject hitObject)
            : base(hitObject)
        {
            LifetimeStart = HitObject.StartTime - HitObject.PreEmpt;
            LifetimeEnd = HitObject.StartTime + HitObject.PreEmpt;
        }

        protected override TaikoJudgementInfo CreateJudgementInfo() => new TaikoJudgementInfo();

        protected override void UpdateState(ArmedState state)
        {
        }

        /// <summary>
        /// Sets the scroll position of the DrawableHitObject relative to the offset between
        /// a time value and the HitObject's StartTime.
        /// </summary>
        /// <param name="time"></param>
        protected void UpdateScrollPosition(double time)
        {
            MoveToX((float)((HitObject.StartTime - time) / HitObject.PreEmpt));
        }

        protected override void Update()
        {
            UpdateScrollPosition(Time.Current);
        }
    }
}
{'fraction_non_alphanumeric': 0.09568480300187618, 'fraction_numerical': 0.006378986866791745, 'mean_word_length': 2.512516469038208, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '6439180', 'n_tokens_mistral': 807, 'n_tokens_neox': 748, 'n_words': 160}