32 lines
692 B
C#
32 lines
692 B
C#
|
|
using System.Diagnostics;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System;
|
|
using Godot;
|
|
|
|
|
|
namespace Rokojori
|
|
{
|
|
public class TimeLineEvent
|
|
{
|
|
public int id;
|
|
public bool persistent;
|
|
public float position;
|
|
public bool wasInside = false;
|
|
public bool looping = false;
|
|
public float loopDuration = 0;
|
|
|
|
|
|
public float GetNextLoopPosition( float timelinePosition )
|
|
{
|
|
return MathAudio.GetNextLoopPosition( timelinePosition, loopDuration, position );
|
|
}
|
|
|
|
public float GetPreviousLoopPosition( float timelinePosition )
|
|
{
|
|
return MathAudio.GetPreviousLoopPosition( timelinePosition, loopDuration, position );
|
|
}
|
|
|
|
}
|
|
} |