@rpgjs/server 5.0.0-alpha.43 → 5.0.0-alpha.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,11 @@ export type ExpCurve = {
5
5
  accelerationA: number;
6
6
  accelerationB: number;
7
7
  };
8
+ export type ParameterCurve = {
9
+ start: number;
10
+ end: number;
11
+ };
12
+ export type ParameterValue = number | ParameterCurve;
8
13
  /**
9
14
  * Interface for Parameter Manager functionality
10
15
  *
@@ -232,6 +237,15 @@ export interface IParameterManager {
232
237
  end: number;
233
238
  };
234
239
  };
240
+ /**
241
+ * Set a parameter with either a fixed value or a level curve
242
+ *
243
+ * A numeric value is stored as a fixed parameter where `start === end`.
244
+ *
245
+ * @param name - Parameter name
246
+ * @param value - Fixed value or parameter curve
247
+ */
248
+ setParameter(name: string, value: ParameterValue): void;
235
249
  /**
236
250
  * Get the value of a specific parameter by name
237
251
  *