SM.Core: + Particle System + scriptable system for scripts ~ Moved Texts- and Particles-namespace to SM.Base.Drawing ~ Changed how you tell the stopwatch to pause. (From method to property) ~ Fixed Randomize.GetFloat(min, max) ~ Now automaticly adds the DrawingBase.Transformation to DrawContext.ModelMatrix. No need to change DrawContext.Instances[0], anymore. SM.OGL: + "one-file-shader"-support SM2D: + DrawParticles (Control for Texture and Color not there yet) ~ Changed coordnate system to upper-right as (1,1) ~ Changed default shader to "one-file-shader"
34 lines
No EOL
622 B
C#
34 lines
No EOL
622 B
C#
#region usings
|
|
|
|
using System;
|
|
using SM.Base.Contexts;
|
|
|
|
#endregion
|
|
|
|
namespace SM.Base.Time
|
|
{
|
|
/// <summary>
|
|
/// Performs intervals.
|
|
/// </summary>
|
|
public class Interval : Timer
|
|
{
|
|
private bool _stop;
|
|
|
|
/// <inheritdoc />
|
|
public Interval(float seconds) : base(seconds)
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public Interval(TimeSpan timeSpan) : base(timeSpan)
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Stopping(UpdateContext context)
|
|
{
|
|
TriggerEndAction(context);
|
|
Reset();
|
|
}
|
|
}
|
|
} |