From 8cb41c605f02018553bd3a927708813ead5d6b5b Mon Sep 17 00:00:00 2001 From: Mees van der Wijk Date: Sat, 9 Aug 2025 18:02:07 +0200 Subject: [PATCH] Moved stuff arround --- ModuleClientAPIGameLib.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/ModuleClientAPIGameLib.md b/ModuleClientAPIGameLib.md index ba90fd0..83e6206 100644 --- a/ModuleClientAPIGameLib.md +++ b/ModuleClientAPIGameLib.md @@ -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._