﻿using System;
using UnityEngine;

namespace FreeSequencer.Events
{
	[Serializable]
	public class TrackEvent : ScriptableObject
	{
		public string EventTitle;
		public int StartFrame;
		public int EndFrame;

		public int Length { get { return EndFrame - StartFrame; } }

		public Color EventInnerColor;
		public Color EventTitleColor;

		public bool IsActive;
		public bool IsDragged;
		public bool IsMinDragged;
		public bool IsMaxDragged;
		public Vector3 InitialDraggedPosition;
		public bool IsDirty;
		public TrackEvent()
		{
			EventInnerColor = Color.blue;
			EventTitleColor = Color.white;
		}
	}
}
