# Class: ParamGroup\<S\>

Defined in: [core/src/params.ts:36](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/params.ts#L36)

## Type Parameters

### S

`S` *extends* [`ParamSchema`](../type-aliases/ParamSchema.md)

## Constructors

### Constructor

> **new ParamGroup**\<`S`\>(`id`, `schema`, `onChange?`): `ParamGroup`\<`S`\>

Defined in: [core/src/params.ts:39](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/params.ts#L39)

#### Parameters

##### id

`string`

##### schema

`S`

##### onChange?

(`change`) => `void`

#### Returns

`ParamGroup`\<`S`\>

## Properties

### id

> `readonly` **id**: `string`

Defined in: [core/src/params.ts:40](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/params.ts#L40)

***

### schema

> `readonly` **schema**: `S`

Defined in: [core/src/params.ts:41](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/params.ts#L41)

## Accessors

### values

#### Get Signature

> **get** **values**(): `Readonly`\<[`ParamValues`](../type-aliases/ParamValues.md)\<`S`\>\>

Defined in: [core/src/params.ts:48](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/params.ts#L48)

Live view of current values; read every frame, write via `set`.

##### Returns

`Readonly`\<[`ParamValues`](../type-aliases/ParamValues.md)\<`S`\>\>

## Methods

### get()

> **get**\<`K`\>(`key`): [`ParamValues`](../type-aliases/ParamValues.md)\<`S`\>\[`K`\]

Defined in: [core/src/params.ts:52](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/params.ts#L52)

#### Type Parameters

##### K

`K` *extends* `string`

#### Parameters

##### key

`K`

#### Returns

[`ParamValues`](../type-aliases/ParamValues.md)\<`S`\>\[`K`\]

***

### reset()

> **reset**(): `void`

Defined in: [core/src/params.ts:76](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/params.ts#L76)

#### Returns

`void`

***

### set()

> **set**(`key`, `value`): `void`

Defined in: [core/src/params.ts:57](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/params.ts#L57)

Set a value, validating type and range. Throws on invalid input rather than clamping silently.

#### Parameters

##### key

keyof `S` & `string`

##### value

[`ParamValue`](../type-aliases/ParamValue.md)

#### Returns

`void`
