feat: add initial People Playground mod development kit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
URL: https://wiki.studiominus.nl/internalReference/FixedIntervalDistributor.html
|
||||
Title: People Playground Modding - FixedIntervalDistributor
|
||||
==================================================
|
||||
|
||||
public class FixedIntervalDistributor
|
||||
Class that calculates the amount of times something needs to execute to adhere to a specific rate
|
||||
Properties
|
||||
public float RateHz { get; set; }
|
||||
Preferred cycles rate
|
||||
|
||||
public float Rate { get; set; }
|
||||
[System.Obsolete]
|
||||
No description provided
|
||||
|
||||
public int MaxCycles { get; set; }
|
||||
Maximum ouput cycles
|
||||
|
||||
public int MaxRate { get; set; }
|
||||
[System.Obsolete]
|
||||
No description provided
|
||||
|
||||
public float IntervalSeconds { get; private set; }
|
||||
1.0f / RateHz
|
||||
|
||||
Methods
|
||||
public void ResetAccumulator(float t = 0)
|
||||
No description provided
|
||||
|
||||
public int CalculateCycleCount(float realDeltaTimeInSeconds)
|
||||
Calculate the amount of cycles to execute
|
||||
Reference in New Issue
Block a user