Releases: Cysharp/LogicLooper
Releases · Cysharp/LogicLooper
1.6.0
What's Changed
- Adopt to .NET 8 by @mayuki in #32
- LogicLooper.Current also returns an instance when running in ManualLogicLooper by @mayuki in #33
Housekeeping
- ci: add depndabot.yaml to update github-actions by @guitarrapc in #26
- Bump actions/upload-artifact from 2 to 4 by @dependabot in #30
- Bump technote-space/toc-generator from 2.4.0 to 4.3.1 by @dependabot in #29
- Bump peaceiris/actions-gh-pages from 3 to 4 by @dependabot in #28
- Bump actions/checkout from 3 to 4 by @dependabot in #27
- ci: change upload-artifact & download-artifact to Cysharp/Actions by @guitarrapc in #31
New Contributors
- @dependabot made their first contribution in #30
Full Changelog: 1.5.0...1.6.0
Ver.1.5.0
What's Changed
- ci: use setup-dotnet default dotnet version by @guitarrapc in #23
- ci: Cysharp/Actions/.github/workflows/create-release.yaml by @guitarrapc in #24
- Add ILogicLooper.CurrentFrame property by @mayuki in #25
Full Changelog: 1.4.0...1.5.0
Ver.1.4.0
What's Changed
Full Changelog: 1.3.0...1.4.0
Ver.1.3.0
Ver.1.2.0
1.1.0
Introduce ManualLogicLooper
If you want to write unit tests with LogicLooper or update frames manually, you can use ManualLogicLooper
/ ManualLogicLooperPool
.
var looper = new ManualLogicLooper(60.0); // `ElapsedTimeFromPreviousFrame` will be fixed to `1000 / FrameTargetFrameRate`.
var count = 0;
var t1 = looper.RegisterActionAsync((in LogicLooperActionContext ctx) =>
{
count++;
return count != 3;
});
looper.Tick(); // Update frame
Console.WriteLine(count); // => 1
looper.Tick(); // Update frame
Console.WriteLine(count); // => 2
looper.Tick(); // Update frame (t1 will be completed)
Console.WriteLine(count); // => 3
looper.Tick(); // Update frame (no action)
Console.WriteLine(count); // => 3
What's Changed
Full Changelog: 1.0.2...1.1.0