DotNet script changes transform

This commit is contained in:
Simon Lübeß
2022-04-27 23:58:50 +02:00
parent 2bac6a8d05
commit 63b9270710
11 changed files with 444 additions and 22 deletions
@@ -0,0 +1,23 @@
namespace DotNetScriptingHelper;
public class GameTime
{
private ulong _frameCount;
private TimeSpan _totalTime;
private TimeSpan _frameTime;
public ulong FrameCount => _frameCount;
public TimeSpan TotalTime => _totalTime;
public TimeSpan FrameTime => _frameTime;
public float DeltaTime => (float)_frameTime.TotalSeconds;
public float TotalSeconds => (float)_totalTime.TotalSeconds;
internal GameTime(ulong frameCount, TimeSpan totalTime, TimeSpan frameTime)
{
_frameCount = frameCount;
_totalTime = totalTime;
_frameTime = frameTime;
}
}