# Class: ParamRegistry

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

Registry of every param group in a game; the surface agents and dev tools inspect.

## Constructors

### Constructor

> **new ParamRegistry**(): `ParamRegistry`

#### Returns

`ParamRegistry`

## Methods

### define()

> **define**\<`S`\>(`id`, `schema`): [`ParamGroup`](ParamGroup.md)\<`S`\>

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

#### Type Parameters

##### S

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

#### Parameters

##### id

`string`

##### schema

`S`

#### Returns

[`ParamGroup`](ParamGroup.md)\<`S`\>

***

### describe()

> **describe**(): `Record`\<`string`, [`ParamDescription`](../interfaces/ParamDescription.md)\>

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

JSON-serialisable snapshot of schemas and current values.

#### Returns

`Record`\<`string`, [`ParamDescription`](../interfaces/ParamDescription.md)\>

***

### group()

> **group**(`id`): [`ParamGroup`](ParamGroup.md)\<[`ParamSchema`](../type-aliases/ParamSchema.md)\> \| `undefined`

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

#### Parameters

##### id

`string`

#### Returns

[`ParamGroup`](ParamGroup.md)\<[`ParamSchema`](../type-aliases/ParamSchema.md)\> \| `undefined`

***

### onChange()

> **onChange**(`listener`): () => `void`

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

#### Parameters

##### listener

(`change`) => `void`

#### Returns

() => `void`
