2024-05-19 15:59:41 +00:00
|
|
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System;
|
|
|
|
using Godot;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Rokojori
|
|
|
|
{
|
|
|
|
public class TimeLineEvent
|
|
|
|
{
|
2025-01-08 18:46:17 +00:00
|
|
|
public int id;
|
2024-05-19 15:59:41 +00:00
|
|
|
public bool persistent;
|
2025-01-08 18:46:17 +00:00
|
|
|
public float position;
|
2025-01-03 12:09:23 +00:00
|
|
|
public bool wasInside = false;
|
2025-01-16 07:20:32 +00:00
|
|
|
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 );
|
|
|
|
}
|
|
|
|
|
2024-05-19 15:59:41 +00:00
|
|
|
}
|
|
|
|
}
|