Moved stuff arround
@@ -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._
|
||||
|
||||
Reference in New Issue
Block a user