Moved stuff arround

2025-08-09 18:02:07 +02:00
parent 9ea5cd3fd1
commit 8cb41c605f

@@ -55,6 +55,20 @@ api.GameLib.Timing.toFrameCycle(startTimestamp, frameInterval, totalFrames, star
**Return** [FrameCycle](./ModuleApiGameLibFrameCycle) _FrameCycle instance._
### toRatio
Creates a ratio object.
```javascript
api.GameLib.Timing.toRatio(value);
```
| Argument | Type | Description |
| -------- | ------ | ----------------------- |
| value | number | The value of the ratio. |
**Return** [Ratio](./ModuleApiGameLibRatio) _Ratio instance._
### getCurrentFrameIndex
Gets the current frame index of the frame cycle.
@@ -112,17 +126,3 @@ api.GameLib.Timing.getTimeSpanRatioAtTimestamp(span, timestamp);
| timestamp | number | The timestamp to get the ratio at. |
**Return** [Ratio](./ModuleApiGameLibRatio) _The ratio of the time span at the given timestamp._
### toRatio
Creates a ratio object.
```javascript
api.GameLib.Timing.toRatio(value);
```
| Argument | Type | Description |
| -------- | ------ | ----------------------- |
| value | number | The value of the ratio. |
**Return** [Ratio](./ModuleApiGameLibRatio) _Ratio instance._